1 ; RUN: llc < %s -march=sparcv9 | FileCheck %s
2 ; Testing 64-bit conditionals.
7 define void @cmpri(i64* %p, i64 %x) {
9 %tobool = icmp eq i64 %x, 1
10 br i1 %tobool, label %if.end, label %if.then
13 store i64 %x, i64* %p, align 8
21 ; CHECK: subcc %i1, %i2
23 define void @cmprr(i64* %p, i64 %x, i64 %y) {
25 %tobool = icmp ugt i64 %x, %y
26 br i1 %tobool, label %if.end, label %if.then
29 store i64 %x, i64* %p, align 8
36 ; CHECK: selecti32_xcc
37 ; CHECK: subcc %i0, %i1
38 ; CHECK: movg %xcc, %i2, %i3
39 ; CHECK: or %g0, %i3, %i0
40 define i32 @selecti32_xcc(i64 %x, i64 %y, i32 %a, i32 %b) {
42 %tobool = icmp sgt i64 %x, %y
43 %rv = select i1 %tobool, i32 %a, i32 %b
47 ; CHECK: selecti64_xcc
48 ; CHECK: subcc %i0, %i1
49 ; CHECK: movg %xcc, %i2, %i3
50 ; CHECK: or %g0, %i3, %i0
51 define i64 @selecti64_xcc(i64 %x, i64 %y, i64 %a, i64 %b) {
53 %tobool = icmp sgt i64 %x, %y
54 %rv = select i1 %tobool, i64 %a, i64 %b