[llvm-commits] CVS: llvm/test/Regression/CodeGen/ARM/constants.ll fp.ll fpmem.ll
Lauro Ramos Venancio
lauro.venancio at gmail.com
Fri Jan 12 12:36:08 PST 2007
Changes in directory llvm/test/Regression/CodeGen/ARM:
constants.ll updated: 1.8 -> 1.9
fp.ll updated: 1.11 -> 1.12
fpmem.ll updated: 1.3 -> 1.4
---
Log message:
Build constants using instructions mov/orr or mvn/eor.
---
Diffs of the changes: (+10 -3)
constants.ll | 3 ++-
fp.ll | 8 +++++++-
fpmem.ll | 2 +-
3 files changed, 10 insertions(+), 3 deletions(-)
Index: llvm/test/Regression/CodeGen/ARM/constants.ll
diff -u llvm/test/Regression/CodeGen/ARM/constants.ll:1.8 llvm/test/Regression/CodeGen/ARM/constants.ll:1.9
--- llvm/test/Regression/CodeGen/ARM/constants.ll:1.8 Fri Jan 5 11:39:32 2007
+++ llvm/test/Regression/CodeGen/ARM/constants.ll Fri Jan 12 14:35:49 2007
@@ -2,7 +2,8 @@
; RUN: grep "mov r0, #0" %t.s | wc -l | grep 1 &&
; RUN: grep "mov r0, #255" %t.s | wc -l | grep 1 &&
; RUN: grep "mov r0, #256" %t.s | wc -l | grep 1 &&
-; RUN: grep ".word.*257" %t.s | wc -l | grep 1 &&
+; RUN: grep "mov r0, #1" %t.s | wc -l | grep 2 &&
+; RUN: grep "orr r0, r0, #256" %t.s | wc -l | grep 1 &&
; RUN: grep "mov r0, #-1073741761" %t.s | wc -l | grep 1 &&
; RUN: grep "mov r0, #1008" %t.s | wc -l | grep 1 &&
; RUN: grep "cmp r0, #65536" %t.s | wc -l | grep 1 &&
Index: llvm/test/Regression/CodeGen/ARM/fp.ll
diff -u llvm/test/Regression/CodeGen/ARM/fp.ll:1.11 llvm/test/Regression/CodeGen/ARM/fp.ll:1.12
--- llvm/test/Regression/CodeGen/ARM/fp.ll:1.11 Fri Dec 1 22:23:08 2006
+++ llvm/test/Regression/CodeGen/ARM/fp.ll Fri Jan 12 14:35:49 2007
@@ -7,7 +7,7 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep flds &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep fstd &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep fsts &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep ".word.*1065353216"
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "mov r0, #1065353216"
double %h(double* %v) {
@@ -16,6 +16,12 @@
ret double %tmp
}
+float %h(float* %v) {
+entry:
+ %tmp = load float* %v ; <double> [#uses=1]
+ ret float %tmp
+}
+
float %h() {
entry:
ret float 1.000000e+00
Index: llvm/test/Regression/CodeGen/ARM/fpmem.ll
diff -u llvm/test/Regression/CodeGen/ARM/fpmem.ll:1.3 llvm/test/Regression/CodeGen/ARM/fpmem.ll:1.4
--- llvm/test/Regression/CodeGen/ARM/fpmem.ll:1.3 Fri Dec 1 22:23:08 2006
+++ llvm/test/Regression/CodeGen/ARM/fpmem.ll Fri Jan 12 14:35:49 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep flds | wc -l | grep 2 &&
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "mov r0, #0" | wc -l | grep 1 &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "flds.*\[" | wc -l | grep 1 &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "fsts.*\[" | wc -l | grep 1
More information about the llvm-commits
mailing list