[llvm-commits] CVS: llvm/test/Regression/CodeGen/ARM/long.ll mvn.ll
Rafael Espindola
rafael.espindola at gmail.com
Mon Dec 11 17:03:29 PST 2006
Changes in directory llvm/test/Regression/CodeGen/ARM:
long.ll updated: 1.8 -> 1.9
mvn.ll updated: 1.1 -> 1.2
---
Log message:
use MVN to handle small negative constants
---
Diffs of the changes: (+7 -7)
long.ll | 4 ++--
mvn.ll | 10 +++++-----
2 files changed, 7 insertions(+), 7 deletions(-)
Index: llvm/test/Regression/CodeGen/ARM/long.ll
diff -u llvm/test/Regression/CodeGen/ARM/long.ll:1.8 llvm/test/Regression/CodeGen/ARM/long.ll:1.9
--- llvm/test/Regression/CodeGen/ARM/long.ll:1.8 Fri Dec 1 22:23:08 2006
+++ llvm/test/Regression/CodeGen/ARM/long.ll Mon Dec 11 19:03:11 2006
@@ -1,9 +1,9 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "mov r1, #0" | wc -l | grep 4 &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "mov r0, #1" | wc -l | grep 1 &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep ".word.*2147483647" | wc -l | grep 2 &&
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "mvn r0, #-2147483648" | wc -l | grep 1 &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "mov r0, #-2147483648" | wc -l | grep 1 &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep ".word.*4294967295" | wc -l | grep 1 &&
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "mvn r1, #-2147483648" | wc -l | grep 1 &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "adds" | wc -l | grep 1 &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "adcs" | wc -l | grep 1 &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "subs" | wc -l | grep 1 &&
Index: llvm/test/Regression/CodeGen/ARM/mvn.ll
diff -u llvm/test/Regression/CodeGen/ARM/mvn.ll:1.1 llvm/test/Regression/CodeGen/ARM/mvn.ll:1.2
--- llvm/test/Regression/CodeGen/ARM/mvn.ll:1.1 Mon Dec 11 18:37:38 2006
+++ llvm/test/Regression/CodeGen/ARM/mvn.ll Mon Dec 11 19:03:11 2006
@@ -1,10 +1,10 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep mvn | wc -l | grep 4
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep mvn | wc -l | grep 5
-;int %f1() {
-;entry:
-; ret int -1
-;}
+int %f1() {
+entry:
+ ret int -1
+}
int %f2(int %a) {
entry:
More information about the llvm-commits
mailing list