X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=test%2FCodeGen%2FAArch64%2Farm64-neon-copy.ll;h=b74a40626ceeb128b578a7ef2dfd1d6a7bf23aba;hp=83b1cac70f5c0665d250a880fccbbb39bbe9cf18;hb=30e21e7109a6467f2c5e60521c5ec849f6aededb;hpb=50005f6837d1b7fb2b885e062d1077d21110b07a;ds=sidebyside diff --git a/test/CodeGen/AArch64/arm64-neon-copy.ll b/test/CodeGen/AArch64/arm64-neon-copy.ll index 83b1cac70f5..b74a40626ce 100644 --- a/test/CodeGen/AArch64/arm64-neon-copy.ll +++ b/test/CodeGen/AArch64/arm64-neon-copy.ll @@ -320,20 +320,21 @@ define i32 @smovw8h(<8 x i16> %tmp1) { ret i32 %tmp5 } -define i64 @smovx16b(<16 x i8> %tmp1) { +define i32 @smovx16b(<16 x i8> %tmp1) { ; CHECK-LABEL: smovx16b: -; CHECK: smov {{x[0-9]+}}, {{v[0-9]+}}.b[8] +; CHECK: smov {{[xw][0-9]+}}, {{v[0-9]+}}.b[8] %tmp3 = extractelement <16 x i8> %tmp1, i32 8 - %tmp4 = sext i8 %tmp3 to i64 - ret i64 %tmp4 + %tmp4 = sext i8 %tmp3 to i32 + %tmp5 = add i32 %tmp4, %tmp4 + ret i32 %tmp5 } -define i64 @smovx8h(<8 x i16> %tmp1) { +define i32 @smovx8h(<8 x i16> %tmp1) { ; CHECK-LABEL: smovx8h: -; CHECK: smov {{x[0-9]+}}, {{v[0-9]+}}.h[2] +; CHECK: smov {{[xw][0-9]+}}, {{v[0-9]+}}.h[2] %tmp3 = extractelement <8 x i16> %tmp1, i32 2 - %tmp4 = sext i16 %tmp3 to i64 - ret i64 %tmp4 + %tmp4 = sext i16 %tmp3 to i32 + ret i32 %tmp4 } define i64 @smovx4s(<4 x i32> %tmp1) {