blob: f6ca8d5855b99e3384a5fafbe9cd3737da8db68d [file] [log] [blame]
Jim Stichnoth5bc2b1d2014-05-22 13:38:48 -07001; Trivial structural test of 64-bit icmp instructions.
2
3; RUN: %llvm2ice --verbose inst %s | FileCheck %s
4; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s
Karl Schimpfa667fb82014-05-19 14:56:51 -07005; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s
6; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \
7; RUN: | FileCheck --check-prefix=DUMP %s
Jim Stichnothf7c9a142014-04-29 10:52:43 -07008
9define void @dummy_icmp(i64 %foo, i64 %bar) {
10; CHECK: define void @dummy_icmp
11entry:
12 %r1 = icmp eq i64 %foo, %bar
13 %r2 = icmp slt i64 %foo, %bar
14 ret void
15; CHECK: entry:
16; CHECK-NEXT: %r1 = icmp eq i64 %foo, %bar
17; CHECK-NEXT: %r2 = icmp slt i64 %foo, %bar
18; CHECK-NEXT: ret void
19}
20
21; ERRORS-NOT: ICE translation error
22; DUMP-NOT: SZ