OSDN Git Service

[ARM GlobalISel] Run regbankselect test for Thumb. NFCI
authorDiana Picus <diana.picus@linaro.org>
Thu, 28 Mar 2019 10:57:29 +0000 (10:57 +0000)
committerDiana Picus <diana.picus@linaro.org>
Thu, 28 Mar 2019 10:57:29 +0000 (10:57 +0000)
This should just work, since ARM mode and Thumb2 mode are at the same
level of support now and should map the same to GPR and FPR.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357159 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/ARM/GlobalISel/arm-regbankselect.mir

index c218df3..5071285 100644 (file)
@@ -1,4 +1,5 @@
 # RUN: llc -mtriple arm-- -run-pass=regbankselect %s -o - | FileCheck %s
+# RUN: llc -mtriple thumbv7-- -run-pass=regbankselect %s -o - | FileCheck %s
 --- |
   define void @test_add_s32() { ret void }
   define void @test_sub_s32() { ret void }
@@ -83,7 +84,7 @@
   define void @test_soft_fp_s64() #0 { ret void }
 
   attributes #0 = { "target-features"="+vfp2"}
-  attributes #1 = { "target-features"="+hwdiv-arm" }
+  attributes #1 = { "target-features"="+hwdiv-arm,+hwdiv" }
   attributes #2 = { "target-features"="+vfp4"}
   attributes #3 = { "target-features"="+v5t"}
 ...