summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Thumb2/v8_IT_4.ll
diff options
context:
space:
mode:
authorWeiming Zhao <weimingz@codeaurora.org>2013-11-13 18:29:49 +0000
committerWeiming Zhao <weimingz@codeaurora.org>2013-11-13 18:29:49 +0000
commit0da5cc0765a99b659695fff6210a97397a81c153 (patch)
treedc41e4f6600b031b7ee05d7472404f58a8d979c9 /llvm/test/CodeGen/Thumb2/v8_IT_4.ll
parent00229a82cc3a3e9ba76e5123a07492ad2cf970c0 (diff)
downloadbcm5719-llvm-0da5cc0765a99b659695fff6210a97397a81c153.tar.gz
bcm5719-llvm-0da5cc0765a99b659695fff6210a97397a81c153.zip
Enable generating legacy IT block for AArch32
By default, the behavior of IT block generation will be determinated dynamically base on the arch (armv8 vs armv7). This patch adds backend options: -arm-restrict-it and -arm-no-restrict-it. The former one restricts the generation of IT blocks (the same behavior as thumbv8) for both arches. The later one allows the generation of legacy IT block (the same behavior as ARMv7 Thumb2) for both arches. Clang will support -mrestrict-it and -mno-restrict-it, which is compatible with GCC. llvm-svn: 194592
Diffstat (limited to 'llvm/test/CodeGen/Thumb2/v8_IT_4.ll')
-rw-r--r--llvm/test/CodeGen/Thumb2/v8_IT_4.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Thumb2/v8_IT_4.ll b/llvm/test/CodeGen/Thumb2/v8_IT_4.ll
index 45c79f430f1..5a80d8cd7b4 100644
--- a/llvm/test/CodeGen/Thumb2/v8_IT_4.ll
+++ b/llvm/test/CodeGen/Thumb2/v8_IT_4.ll
@@ -1,5 +1,7 @@
; RUN: llc < %s -mtriple=thumbv8-eabi -float-abi=hard | FileCheck %s
+; RUN: llc < %s -mtriple=thumbv7-eabi -float-abi=hard -arm-restrict-it | FileCheck %s
; RUN: llc < %s -mtriple=thumbv8-eabi -float-abi=hard -regalloc=basic | FileCheck %s
+; RUN: llc < %s -mtriple=thumbv7-eabi -float-abi=hard -regalloc=basic -arm-restrict-it | FileCheck %s
%"struct.__gnu_cxx::__normal_iterator<char*,std::basic_string<char, std::char_traits<char>, std::allocator<char> > >" = type { i8* }
%"struct.__gnu_cxx::new_allocator<char>" = type <{ i8 }>
OpenPOWER on IntegriCloud