diff options
| author | Diana Picus <diana.picus@linaro.org> | 2017-02-17 11:25:17 +0000 |
|---|---|---|
| committer | Diana Picus <diana.picus@linaro.org> | 2017-02-17 11:25:17 +0000 |
| commit | 7cab0786bdcca1300cf9150788d3b1f5abd9923c (patch) | |
| tree | 49534aa4da1c77375df990c1a3933ca89e14df53 /llvm/test/CodeGen/ARM | |
| parent | d2f3ba71c9bc1f972c1353a55d9fe58346d8698a (diff) | |
| download | bcm5719-llvm-7cab0786bdcca1300cf9150788d3b1f5abd9923c.tar.gz bcm5719-llvm-7cab0786bdcca1300cf9150788d3b1f5abd9923c.zip | |
[ARM] GlobalISel: Use Subtarget in Legalizer
Start using the Subtarget to make decisions about what's legal. In particular,
we only mark floating point operations as legal if we have VFP2, which is
something we should've done from the very start.
llvm-svn: 295439
Diffstat (limited to 'llvm/test/CodeGen/ARM')
| -rw-r--r-- | llvm/test/CodeGen/ARM/GlobalISel/arm-legalizer.mir | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/ARM/GlobalISel/arm-legalizer.mir b/llvm/test/CodeGen/ARM/GlobalISel/arm-legalizer.mir index 61666153ed4..8ed4870ba89 100644 --- a/llvm/test/CodeGen/ARM/GlobalISel/arm-legalizer.mir +++ b/llvm/test/CodeGen/ARM/GlobalISel/arm-legalizer.mir @@ -8,10 +8,12 @@ define void @test_add_s32() { ret void } define void @test_load_from_stack() { ret void } - define void @test_legal_loads() { ret void } + define void @test_legal_loads() #0 { ret void } - define void @test_fadd_s32() { ret void } - define void @test_fadd_s64() { ret void } + define void @test_fadd_s32() #0 { ret void } + define void @test_fadd_s64() #0 { ret void } + + attributes #0 = { "target-features"="+vfp2" } ... --- name: test_sext_s8 |

