1 # RUN: llc -mtriple arm-- -mattr=+neon -run-pass=legalizer %s -o - | FileCheck %s
2 # RUN: llc -mtriple thumb-- -mattr=+v6t2,+neon -run-pass=legalizer %s -o - | FileCheck %s
4 define void @test_add_s64() { ret void }
6 define void @test_sub_s64() { ret void }
10 # CHECK-LABEL: name: test_add_s64
12 # CHECK: legalized: true
13 regBankSelected: false
15 tracksRegLiveness: true
26 %2(s64) = G_ADD %0, %1
27 ; G_ADD with s64 is legal, so we should find it unchanged in the output
28 ; CHECK: {{%[0-9]+}}:_(s64) = G_ADD {{%[0-9]+, %[0-9]+}}
30 BX_RET 14, $noreg, implicit $d0
34 # CHECK-LABEL: name: test_sub_s64
36 # CHECK: legalized: true
37 regBankSelected: false
39 tracksRegLiveness: true
50 %2(s64) = G_SUB %0, %1
51 ; G_SUB with s64 is legal, so we should find it unchanged in the output
52 ; CHECK: {{%[0-9]+}}:_(s64) = G_SUB {{%[0-9]+, %[0-9]+}}
54 BX_RET 14, $noreg, implicit $d0