aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/constants.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2006-12-14 18:58:37 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2006-12-14 18:58:37 +0000
commit8897a7b02e6ccd50bbcb68133e55b54ec8a2e4e0 (patch)
tree2465232e1897a5ddb29a0ddc259f15982864a4b3 /test/CodeGen/ARM/constants.ll
parenta84b3025ca7d437d2eab22d7c3002c8d89c31858 (diff)
downloadexternal_llvm-8897a7b02e6ccd50bbcb68133e55b54ec8a2e4e0.zip
external_llvm-8897a7b02e6ccd50bbcb68133e55b54ec8a2e4e0.tar.gz
external_llvm-8897a7b02e6ccd50bbcb68133e55b54ec8a2e4e0.tar.bz2
avoid using a constant table when a constant can be used inline
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32580 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/constants.ll')
-rw-r--r--test/CodeGen/ARM/constants.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/constants.ll b/test/CodeGen/ARM/constants.ll
index 0d69f53..3d7b9a4 100644
--- a/test/CodeGen/ARM/constants.ll
+++ b/test/CodeGen/ARM/constants.ll
@@ -5,6 +5,7 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep ".word.*257" | wc -l | grep 1 &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "mov r0, #-1073741761" | wc -l | grep 1 &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "mov r0, #1008" | wc -l | grep 1 &&
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "cmp r0, #65536" | wc -l | grep 1 &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "\.comm.*a,4,4" | wc -l | grep 1
%a = internal global int 0
@@ -32,3 +33,12 @@ uint %f5() {
uint %f6() {
ret uint 1008
}
+
+void %f7(uint %a) {
+entry:
+ %b = setgt uint %a, 65536
+ br bool %b, label %r, label %r
+
+r:
+ ret void
+}