[llvm-commits] CVS: llvm/test/Regression/CodeGen/ARM/constants.ll long.ll ret0.ll
Rafael Espindola
rafael.espindola at gmail.com
Thu Sep 21 04:30:08 PDT 2006
Changes in directory llvm/test/Regression/CodeGen/ARM:
constants.ll added (r1.1)
long.ll updated: 1.1 -> 1.2
ret0.ll (r1.1) removed
---
Log message:
if a constant can't be an immediate, add it to the constant pool
---
Diffs of the changes: (+33 -3)
constants.ll | 31 +++++++++++++++++++++++++++++++
long.ll | 5 ++---
2 files changed, 33 insertions(+), 3 deletions(-)
Index: llvm/test/Regression/CodeGen/ARM/constants.ll
diff -c /dev/null llvm/test/Regression/CodeGen/ARM/constants.ll:1.1
*** /dev/null Thu Sep 21 06:30:02 2006
--- llvm/test/Regression/CodeGen/ARM/constants.ll Thu Sep 21 06:29:52 2006
***************
*** 0 ****
--- 1,31 ----
+ ; RUN: llvm-as < %s | llc -march=arm &&
+ ; RUN: llvm-as < %s | llc -march=arm | grep "mov r0, #0" | wc -l | grep 1 &&
+ ; RUN: llvm-as < %s | llc -march=arm | grep "mov r0, #255" | wc -l | grep 1 &&
+ ; RUN: llvm-as < %s | llc -march=arm | grep "mov r0, #256" | wc -l | grep 1 &&
+ ; RUN: llvm-as < %s | llc -march=arm | grep ".word.*257" | wc -l | grep 1 &&
+ ; RUN: llvm-as < %s | llc -march=arm | grep "mov r0, #-1073741761" | wc -l | grep 1 &&
+ ; RUN: llvm-as < %s | llc -march=arm | grep "mov r0, #1008" | wc -l | grep 1
+
+ uint %f1() {
+ ret uint 0
+ }
+
+ uint %f2() {
+ ret uint 255
+ }
+
+ uint %f3() {
+ ret uint 256
+ }
+
+ uint %f4() {
+ ret uint 257
+ }
+
+ uint %f5() {
+ ret uint 3221225535
+ }
+
+ uint %f6() {
+ ret uint 1008
+ }
Index: llvm/test/Regression/CodeGen/ARM/long.ll
diff -u llvm/test/Regression/CodeGen/ARM/long.ll:1.1 llvm/test/Regression/CodeGen/ARM/long.ll:1.2
--- llvm/test/Regression/CodeGen/ARM/long.ll:1.1 Mon Sep 4 14:05:01 2006
+++ llvm/test/Regression/CodeGen/ARM/long.ll Thu Sep 21 06:29:52 2006
@@ -1,10 +1,9 @@
; RUN: llvm-as < %s | llc -march=arm &&
; RUN: llvm-as < %s | llc -march=arm | grep "mov r1, #0" | wc -l | grep 4 &&
; RUN: llvm-as < %s | llc -march=arm | grep "mov r0, #1" | wc -l | grep 1 &&
-; RUN: llvm-as < %s | llc -march=arm | grep "mov r0, #2147483647" | wc -l | grep 1 &&
+; RUN: llvm-as < %s | llc -march=arm | grep ".word.*2147483647" | wc -l | grep 2 &&
; RUN: llvm-as < %s | llc -march=arm | grep "mov r0, #-2147483648" | wc -l | grep 1 &&
-; RUN: llvm-as < %s | llc -march=arm | grep "mov r0, #-1" | wc -l | grep 1 &&
-; RUN: llvm-as < %s | llc -march=arm | grep "mov r1, #2147483647" | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=arm | grep ".word.*4294967295" | wc -l | grep 1
long %f1() {
entry:
More information about the llvm-commits
mailing list