1 # RUN: llc -mtriple arm-- -run-pass=legalizer %s -o - | FileCheck %s
3 define void @test_constants_s64() { ret void }
5 define void @test_phi_s64() #0 { ret void }
7 attributes #0 = { "target-features"="+vfp2" }
10 name: test_constants_s64
11 # CHECK-LABEL: name: test_constants_s64
13 # CHECK: legalized: true
14 regBankSelected: false
16 tracksRegLiveness: true
28 %1(s64) = G_CONSTANT i64 17179869200 ; = 4 * 2 ^ 32 + 16
29 %2(s32), %3(s32) = G_UNMERGE_VALUES %1(s64)
30 G_STORE %2(s32), %0(p0) :: (store 4)
31 G_STORE %3(s32), %0(p0) :: (store 4)
32 ; CHECK-DAG: {{%[0-9]+}}:_(s32) = G_CONSTANT i32 4
33 ; CHECK-DAG: {{%[0-9]+}}:_(s32) = G_CONSTANT i32 16
34 ; CHECK-NOT: G_CONSTANT i64
40 # CHECK-LABEL: name: test_phi_s64
42 # CHECK: legalized: true
43 regBankSelected: false
45 tracksRegLiveness: true
54 liveins: $r0, $d0, $d1
57 %1(s1) = G_TRUNC %0(s32)
62 G_BRCOND %1(s1), %bb.1
69 %4(s64) = G_PHI %2(s64), %bb.0, %3(s64), %bb.1
70 ; G_PHI with s64 is legal when we have floating point support, so we should
71 ; find it unchanged in the output
72 ; CHECK: G_PHI {{%[0-9]+}}(s64), %bb.0, {{%[0-9]+}}(s64), %bb.1
74 BX_RET 14, $noreg, implicit $d0