[llvm-commits] CVS: llvm/test/Feature/packed_cmp.ll
Reid Spencer
reid at x10sys.com
Wed Apr 11 10:51:20 PDT 2007
Changes in directory llvm/test/Feature:
packed_cmp.ll updated: 1.4 -> 1.5
---
Log message:
Upgrade this file completely instead of downgrading it. Make sure that
false positives aren't made.
---
Diffs of the changes: (+30 -31)
packed_cmp.ll | 61 ++++++++++++++++++++++++++++------------------------------
1 files changed, 30 insertions(+), 31 deletions(-)
Index: llvm/test/Feature/packed_cmp.ll
diff -u llvm/test/Feature/packed_cmp.ll:1.4 llvm/test/Feature/packed_cmp.ll:1.5
--- llvm/test/Feature/packed_cmp.ll:1.4 Wed Apr 11 07:46:06 2007
+++ llvm/test/Feature/packed_cmp.ll Wed Apr 11 12:51:03 2007
@@ -1,58 +1,57 @@
; This test checks to make sure that NE and EQ comparisons of
; vector types work.
-; RUN: llvm-upgrade < %s | llvm-as | llvm-dis > /dev/null -f &&
-; RUN: llvm-upgrade < %s | llvm-as | llvm-dis > %t1.ll
+; RUN: llvm-as | llvm-dis > /dev/null -f &&
+; RUN: llvm-as | llvm-dis > %t1.ll
; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
; RUN: diff %t1.ll %t2.ll
; XFAIL: *
%ivec_type = type <4 x i8>
-%ivec1 = constant %ivec_type < i8 1, i8 1, i8 1, i8 1 >
-%ivec2 = constant %ivec_type < i8 0, i8 0, i8 0, i8 0 >
+ at ivec1 = constant %ivec_type < i8 1, i8 1, i8 1, i8 1 >
+ at ivec2 = constant %ivec_type < i8 0, i8 0, i8 0, i8 0 >
%fvec_type = type <4 x float>
-%fvec1 = constant %fvec_type <float 1.0, float 1.0, float 1.0, float 1.0>
-%fvec2 = constant %fvec_type <float 0.0, float 0.0, float 0.0, float 0.0>
+ at fvec1 = constant %fvec_type <float 1.0, float 1.0, float 1.0, float 1.0>
+ at fvec2 = constant %fvec_type <float 0.0, float 0.0, float 0.0, float 0.0>
-
-define bool %ivectest1() {
- %v1 = load %ivec_type* getelementptr(%ivec_type* %ivec1, i32 0)
- %v2 = load %ivec_type* getelementptr(%ivec_type* %ivec2, i32 0)
+define i1 @ivectest1() {
+ %v1 = load %ivec_type* getelementptr(%ivec_type* @ivec1, i32 0)
+ %v2 = load %ivec_type* getelementptr(%ivec_type* @ivec2, i32 0)
%res = icmp ne %ivec_type %v1, %v2
- ret bool %res
+ ret i1 %res
}
-define bool %ivectest2() {
- %v1 = load %ivec_type* getelementptr(%ivec_type* %ivec1, i32 0)
- %v2 = load %ivec_type* getelementptr(%ivec_type* %ivec2, i32 0)
+define i1 @ivectest2() {
+ %v1 = load %ivec_type* getelementptr(%ivec_type* @ivec1, i32 0)
+ %v2 = load %ivec_type* getelementptr(%ivec_type* @ivec2, i32 0)
%res = icmp eq %ivec_type %v1, %v2
- ret bool %res
+ ret i1 %res
}
-define bool %fvectest1() {
- %v1 = load %fvec_type* %fvec1
- %v2 = load %fvec_type* %fvec2
+define i1 @fvectest1() {
+ %v1 = load %fvec_type* @fvec1
+ %v2 = load %fvec_type* @fvec2
%res = fcmp one %fvec_type %v1, %v2
- ret bool %res
+ ret i1 %res
}
-define bool %fvectest2() {
- %v1 = load %fvec_type* %fvec1
- %v2 = load %fvec_type* %fvec2
+define i1 @fvectest2() {
+ %v1 = load %fvec_type* @fvec1
+ %v2 = load %fvec_type* @fvec2
%res = fcmp oeq %fvec_type %v1, %v2
- ret bool %res
+ ret i1 %res
}
-define bool %fvectest3() {
- %v1 = load %fvec_type* %fvec1
- %v2 = load %fvec_type* %fvec2
+define i1 @fvectest3() {
+ %v1 = load %fvec_type* @fvec1
+ %v2 = load %fvec_type* @fvec2
%res = fcmp une %fvec_type %v1, %v2
- ret bool %res
+ ret i1 %res
}
-define bool %fvectest4() {
- %v1 = load %fvec_type* %fvec1
- %v2 = load %fvec_type* %fvec2
+define i1 @fvectest4() {
+ %v1 = load %fvec_type* @fvec1
+ %v2 = load %fvec_type* @fvec2
%res = fcmp ueq %fvec_type %v1, %v2
- ret bool %res
+ ret i1 %res
}
More information about the llvm-commits
mailing list