summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-11-18 16:50:16 +0000
committerSanjay Patel <spatel@rotateright.com>2018-11-18 16:50:16 +0000
commitcb04e590d3b912bf14583955f7696fa02549b7e1 (patch)
tree6bb0c5527f23b09be10a7381b23ffaf59d2915ca /llvm/test/CodeGen
parentbecf03efa1c3723fccb20835c073503e6d97f0d2 (diff)
downloadbcm5719-llvm-cb04e590d3b912bf14583955f7696fa02549b7e1.tar.gz
bcm5719-llvm-cb04e590d3b912bf14583955f7696fa02549b7e1.zip
[Hexagon] make tests immune to improvements in undef simplification
llvm-svn: 347165
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/Hexagon/expand-condsets-pred-undef2.ll4
-rw-r--r--llvm/test/CodeGen/Hexagon/isel-global-offset-alignment.ll8
-rw-r--r--llvm/test/CodeGen/Hexagon/swp-const-tc1.ll4
3 files changed, 8 insertions, 8 deletions
diff --git a/llvm/test/CodeGen/Hexagon/expand-condsets-pred-undef2.ll b/llvm/test/CodeGen/Hexagon/expand-condsets-pred-undef2.ll
index e581506109d..5201f3e30eb 100644
--- a/llvm/test/CodeGen/Hexagon/expand-condsets-pred-undef2.ll
+++ b/llvm/test/CodeGen/Hexagon/expand-condsets-pred-undef2.ll
@@ -3,11 +3,11 @@
; CHECK: if{{.*}}sub
; Function Attrs: nounwind
-define i32 @f0(i32 %a0, i32 %a1, i32 %a2) #0 {
+define i32 @f0(i32 %a0, i32 %a1, i32 %a2, i1 %x) #0 {
b0:
%v0 = add i32 %a0, %a2
%v1 = sub i32 %a1, %a2
- %v2 = select i1 undef, i32 %v0, i32 %v1
+ %v2 = select i1 %x, i32 %v0, i32 %v1
ret i32 %v2
}
diff --git a/llvm/test/CodeGen/Hexagon/isel-global-offset-alignment.ll b/llvm/test/CodeGen/Hexagon/isel-global-offset-alignment.ll
index 3c56db4d90d..ed37687a159 100644
--- a/llvm/test/CodeGen/Hexagon/isel-global-offset-alignment.ll
+++ b/llvm/test/CodeGen/Hexagon/isel-global-offset-alignment.ll
@@ -3,17 +3,17 @@
; This should compile without errors, and the offsets with respect to the
; beginning of the global "array" don't need to be multiples of 8.
;
-; CHECK-DAG: memd(r0+##array+174)
-; CHECK-DAG: memd(r0+##array+182)
+; CHECK-DAG: memd(r2+##array+174)
+; CHECK-DAG: memd(r2+##array+182)
target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048"
target triple = "hexagon"
@array = external global [1000000 x i16], align 8
-define void @fred() #0 {
+define void @fred(i1 %x) #0 {
b0:
- br i1 undef, label %b3, label %b1
+ br i1 %x, label %b3, label %b1
b1: ; preds = %b0
%v2 = add i32 0, 512
diff --git a/llvm/test/CodeGen/Hexagon/swp-const-tc1.ll b/llvm/test/CodeGen/Hexagon/swp-const-tc1.ll
index 4cc6afce497..95dfc37e306 100644
--- a/llvm/test/CodeGen/Hexagon/swp-const-tc1.ll
+++ b/llvm/test/CodeGen/Hexagon/swp-const-tc1.ll
@@ -13,7 +13,7 @@
; CHECK: memb(r{{[0-9]+}}+#0) =
; Function Attrs: nounwind optsize
-define void @f0() #0 {
+define void @f0(i1 %x) #0 {
b0:
br label %b1
@@ -34,7 +34,7 @@ b3: ; preds = %b3, %b2
%v7 = add i32 %v6, undef
%v8 = icmp slt i32 undef, %v7
%v9 = add nsw i32 %v7, 1
- %v10 = select i1 undef, i32 1, i32 %v9
+ %v10 = select i1 %x, i32 1, i32 %v9
%v11 = add i32 %v10, 0
%v12 = getelementptr inbounds i8, i8* null, i32 %v11
%v13 = load i8, i8* %v12, align 1, !tbaa !4
OpenPOWER on IntegriCloud