OSDN Git Service

[ARM] preserve test intent by removing undef
authorSanjay Patel <spatel@rotateright.com>
Sat, 10 Feb 2018 15:14:00 +0000 (15:14 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sat, 10 Feb 2018 15:14:00 +0000 (15:14 +0000)
D43141 proposes to correct undef folding in the DAG,
and this test would not survive that change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@324814 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/ARM/2013-07-29-vector-or-combine.ll

index 979df30..f611c93 100644 (file)
@@ -21,7 +21,7 @@ vector.body:
   %0 = and <4 x i32> %wide.load, <i32 -16711936, i32 -16711936, i32 -16711936, i32 -16711936>
   %1 = sub <4 x i32> %wide.load, zeroinitializer
   %2 = and <4 x i32> %1, <i32 16711680, i32 16711680, i32 16711680, i32 16711680>
-  %3 = or <4 x i32> undef, %0
+  %3 = or <4 x i32> %0, <i32 1, i32 2, i32 3, i32 4>
   %4 = or <4 x i32> %3, %2
   store <4 x i32> %4, <4 x i32>* undef, align 4
   br label %vector.body