[llvm] r197897 - [AArch64]The compare to zero intrinsics should be implemented by 'icmp/fcmp' and 'sext' not 'zext'. Modify the test cases.
Hao Liu
Hao.Liu at arm.com
Sun Dec 22 18:42:11 PST 2013
Author: haoliu
Date: Sun Dec 22 20:42:10 2013
New Revision: 197897
URL: http://llvm.org/viewvc/llvm-project?rev=197897&view=rev
Log:
[AArch64]The compare to zero intrinsics should be implemented by 'icmp/fcmp' and 'sext' not 'zext'. Modify the test cases.
Modified:
llvm/trunk/test/CodeGen/AArch64/neon-scalar-compare.ll
llvm/trunk/test/CodeGen/AArch64/neon-scalar-fp-compare.ll
Modified: llvm/trunk/test/CodeGen/AArch64/neon-scalar-compare.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AArch64/neon-scalar-compare.ll?rev=197897&r1=197896&r2=197897&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/AArch64/neon-scalar-compare.ll (original)
+++ llvm/trunk/test/CodeGen/AArch64/neon-scalar-compare.ll Sun Dec 22 20:42:10 2013
@@ -271,7 +271,7 @@ define <1 x i64> @test_vceqz_s64(<1 x i6
; CHECK: test_vceqz_s64
; CHECK: cmeq {{d[0-9]}}, {{d[0-9]}}, #0x0
%1 = icmp eq <1 x i64> %a, zeroinitializer
- %vceqz.i = zext <1 x i1> %1 to <1 x i64>
+ %vceqz.i = sext <1 x i1> %1 to <1 x i64>
ret <1 x i64> %vceqz.i
}
@@ -279,7 +279,7 @@ define <1 x i64> @test_vceqz_u64(<1 x i6
; CHECK: test_vceqz_u64
; CHECK: cmeq {{d[0-9]}}, {{d[0-9]}}, #0x0
%1 = icmp eq <1 x i64> %a, zeroinitializer
- %vceqz.i = zext <1 x i1> %1 to <1 x i64>
+ %vceqz.i = sext <1 x i1> %1 to <1 x i64>
ret <1 x i64> %vceqz.i
}
@@ -287,7 +287,7 @@ define <1 x i64> @test_vceqz_p64(<1 x i6
; CHECK: test_vceqz_p64
; CHECK: cmeq {{d[0-9]}}, {{d[0-9]}}, #0x0
%1 = icmp eq <1 x i64> %a, zeroinitializer
- %vceqz.i = zext <1 x i1> %1 to <1 x i64>
+ %vceqz.i = sext <1 x i1> %1 to <1 x i64>
ret <1 x i64> %vceqz.i
}
@@ -295,7 +295,7 @@ define <2 x i64> @test_vceqzq_p64(<2 x i
; CHECK: test_vceqzq_p64
; CHECK: cmeq {{v[0-9]}}.2d, {{v[0-9]}}.2d, #0
%1 = icmp eq <2 x i64> %a, zeroinitializer
- %vceqz.i = zext <2 x i1> %1 to <2 x i64>
+ %vceqz.i = sext <2 x i1> %1 to <2 x i64>
ret <2 x i64> %vceqz.i
}
@@ -303,7 +303,7 @@ define <1 x i64> @test_vcgez_s64(<1 x i6
; CHECK: test_vcgez_s64
; CHECK: cmge {{d[0-9]}}, {{d[0-9]}}, #0x0
%1 = icmp sge <1 x i64> %a, zeroinitializer
- %vcgez.i = zext <1 x i1> %1 to <1 x i64>
+ %vcgez.i = sext <1 x i1> %1 to <1 x i64>
ret <1 x i64> %vcgez.i
}
@@ -311,7 +311,7 @@ define <1 x i64> @test_vclez_s64(<1 x i6
; CHECK: test_vclez_s64
; CHECK: cmle {{d[0-9]}}, {{d[0-9]}}, #0x0
%1 = icmp sle <1 x i64> %a, zeroinitializer
- %vclez.i = zext <1 x i1> %1 to <1 x i64>
+ %vclez.i = sext <1 x i1> %1 to <1 x i64>
ret <1 x i64> %vclez.i
}
@@ -319,7 +319,7 @@ define <1 x i64> @test_vcgtz_s64(<1 x i6
; CHECK: test_vcgtz_s64
; CHECK: cmgt {{d[0-9]}}, {{d[0-9]}}, #0x0
%1 = icmp sgt <1 x i64> %a, zeroinitializer
- %vcgtz.i = zext <1 x i1> %1 to <1 x i64>
+ %vcgtz.i = sext <1 x i1> %1 to <1 x i64>
ret <1 x i64> %vcgtz.i
}
@@ -327,7 +327,7 @@ define <1 x i64> @test_vcltz_s64(<1 x i6
; CHECK: test_vcltz_s64
; CHECK: cmlt {{d[0-9]}}, {{d[0-9]}}, #0
%1 = icmp slt <1 x i64> %a, zeroinitializer
- %vcltz.i = zext <1 x i1> %1 to <1 x i64>
+ %vcltz.i = sext <1 x i1> %1 to <1 x i64>
ret <1 x i64> %vcltz.i
}
Modified: llvm/trunk/test/CodeGen/AArch64/neon-scalar-fp-compare.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AArch64/neon-scalar-fp-compare.ll?rev=197897&r1=197896&r2=197897&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/AArch64/neon-scalar-fp-compare.ll (original)
+++ llvm/trunk/test/CodeGen/AArch64/neon-scalar-fp-compare.ll Sun Dec 22 20:42:10 2013
@@ -25,7 +25,7 @@ define <1 x i64> @test_vceqz_f64(<1 x do
; CHECK: fcmeq {{d[0-9]+}}, {{d[0-9]+}}, #0.0
entry:
%0 = fcmp oeq <1 x double> %a, zeroinitializer
- %vceqz.i = zext <1 x i1> %0 to <1 x i64>
+ %vceqz.i = sext <1 x i1> %0 to <1 x i64>
ret <1 x i64> %vceqz.i
}
More information about the llvm-commits
mailing list