diff options
| author | Joey Gouly <joey.gouly@arm.com> | 2013-09-09 14:21:49 +0000 |
|---|---|---|
| committer | Joey Gouly <joey.gouly@arm.com> | 2013-09-09 14:21:49 +0000 |
| commit | a5153cb0255bd2c9e0476642643e283ec9a7523c (patch) | |
| tree | d7e5e2bf9f9e9842e418a46429ce803244aeaf4a /llvm/test/CodeGen/ARM/thumb2-it-block.ll | |
| parent | 83d81784df07834783f44294766e340f37f7873b (diff) | |
| download | bcm5719-llvm-a5153cb0255bd2c9e0476642643e283ec9a7523c.tar.gz bcm5719-llvm-a5153cb0255bd2c9e0476642643e283ec9a7523c.zip | |
[ARMv8] Prevent generation of deprecated IT blocks on ARMv8 in Thumb mode.
IT blocks can only be one instruction lonf, and can only contain a subset of
the 16 instructions.
Patch by Artyom Skrobov!
llvm-svn: 190309
Diffstat (limited to 'llvm/test/CodeGen/ARM/thumb2-it-block.ll')
| -rw-r--r-- | llvm/test/CodeGen/ARM/thumb2-it-block.ll | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/ARM/thumb2-it-block.ll b/llvm/test/CodeGen/ARM/thumb2-it-block.ll index a25352c0f03..47c5dccd6fe 100644 --- a/llvm/test/CodeGen/ARM/thumb2-it-block.ll +++ b/llvm/test/CodeGen/ARM/thumb2-it-block.ll @@ -1,14 +1,15 @@ ; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck %s +; RUN: llc < %s -mtriple=thumbv8 | FileCheck %s ; PR11107 define i32 @test(i32 %a, i32 %b) { entry: ; CHECK: cmp ; CHECK-NEXT: it mi -; CHECK-NEXT: rsbmi +; CHECK-NEXT: rsb{{s?}}mi ; CHECK-NEXT: cmp ; CHECK-NEXT: it mi -; CHECK-NEXT: rsbmi +; CHECK-NEXT: rsb{{s?}}mi %cmp1 = icmp slt i32 %a, 0 %sub1 = sub nsw i32 0, %a %abs1 = select i1 %cmp1, i32 %sub1, i32 %a |

