• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Check that the MVCLoop (memcpy) is marked as clobbering CC, so that it will
2; not be placed betwen two compare and load-on-condition instructions.
3;
4; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 -pre-RA-sched=list-ilp \
5; RUN:   -print-after=expand-isel-pseudos 2>&1 | FileCheck %s
6;
7; CHECK-LABEL: bb.0.bb:
8; CHECK: CLI
9; CHECK: LOCGHI
10; CHECK-LABEL: bb.2.bb:
11; CHECK: MVC
12
13@.str.35 = external dso_local unnamed_addr constant [9 x i8], align 2
14@func_38.l_1854 = external dso_local unnamed_addr constant [7 x [10 x [3 x i64**]]], align 8
15
16; Function Attrs: nounwind
17define dso_local signext i32 @main(i32 signext %arg, i8** nocapture readonly %arg1) local_unnamed_addr #0 {
18bb:
19  %tmp = load i8, i8* undef, align 1
20  %tmp2 = zext i8 %tmp to i32
21  %tmp3 = sub nsw i32 0, %tmp2
22  %tmp4 = icmp eq i32 %tmp3, 0
23  %tmp5 = zext i1 %tmp4 to i32
24  call void @llvm.memcpy.p0i8.p0i8.i64(i8* nonnull align 8 undef, i8* align 8 bitcast ([7 x [10 x [3 x i64**]]]* @func_38.l_1854 to i8*), i64 1680, i1 false) #2
25  call fastcc void @transparent_crc(i64 undef, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.35, i64 0, i64 0), i32 signext %tmp5)
26  unreachable
27}
28
29; Function Attrs: nounwind
30declare dso_local fastcc void @transparent_crc(i64, i8*, i32 signext) unnamed_addr #0
31
32; Function Attrs: argmemonly nounwind
33declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture writeonly, i8* nocapture readonly, i64, i1) #1
34
35