diff options
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/X86/2007-07-31-VInsertBug.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/2007-07-31-VInsertBug.ll b/llvm/test/CodeGen/X86/2007-07-31-VInsertBug.ll new file mode 100644 index 00000000000..50db1c62f29 --- /dev/null +++ b/llvm/test/CodeGen/X86/2007-07-31-VInsertBug.ll @@ -0,0 +1,16 @@ +; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin | %prcontext {pinsrw \$2} 1 | grep "movl \$1" +; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin | not grep movss + +@G = global <4 x float> zeroinitializer + +define void @test(i32 *%P1, i32* %P2, float *%FP) { + %T = load float* %FP + store i32 0, i32* %P1 + + %U = load <4 x float>* @G + store i32 1, i32* %P1 + %V = insertelement <4 x float> %U, float %T, i32 1 + store <4 x float> %V, <4 x float>* @G + + ret void +} |

