blob: 288eef4f69916034379bc3402b39d7308ec99859 [file] [log] [blame]
Dan Gohman40503392009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86-64
Rafael Espindola18ba2712009-08-03 02:45:34 +00002; PR4669
Dale Johannesendd224d22010-09-30 23:57:10 +00003declare x86_mmx @llvm.x86.mmx.pslli.q(x86_mmx, i32)
Rafael Espindola18ba2712009-08-03 02:45:34 +00004
5define <1 x i64> @test(i64 %t) {
6entry:
7 %t1 = insertelement <1 x i64> undef, i64 %t, i32 0
Dale Johannesendd224d22010-09-30 23:57:10 +00008 %t0 = bitcast <1 x i64> %t1 to x86_mmx
9 %t2 = tail call x86_mmx @llvm.x86.mmx.pslli.q(x86_mmx %t0, i32 48)
10 %t3 = bitcast x86_mmx %t2 to <1 x i64>
11 ret <1 x i64> %t3
Rafael Espindola18ba2712009-08-03 02:45:34 +000012}