diff options
author | Sanjay Patel <spatel@rotateright.com> | 2018-12-14 17:44:07 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2018-12-14 17:44:07 +0000 |
commit | 95f90ef3b36c1ebc7f3f3538a48c71cba96b18aa (patch) | |
tree | 956f57eb6ad27138a3c8cde25f9046b536b93e19 | |
parent | 2cd3286ed205ad9452febff1fa1992e7d7968257 (diff) | |
download | bcm5719-llvm-95f90ef3b36c1ebc7f3f3538a48c71cba96b18aa.tar.gz bcm5719-llvm-95f90ef3b36c1ebc7f3f3538a48c71cba96b18aa.zip |
[AArch64] make test immune to scalarization improvements; NFC
This is explicitly implementing what the comment says rather
than relying on the implicit zext of a costant operand.
llvm-svn: 349166
-rw-r--r-- | llvm/test/CodeGen/AArch64/aarch64-smull.ll | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/AArch64/aarch64-smull.ll b/llvm/test/CodeGen/AArch64/aarch64-smull.ll index 1c8d13a00b2..8922ae971c2 100644 --- a/llvm/test/CodeGen/AArch64/aarch64-smull.ll +++ b/llvm/test/CodeGen/AArch64/aarch64-smull.ll @@ -291,15 +291,16 @@ define <2 x i64> @umull_extvec_v2i32_v2i64(<2 x i32> %arg) nounwind { ret <2 x i64> %tmp4 } -define i16 @smullWithInconsistentExtensions(<8 x i8> %vec) { +define i16 @smullWithInconsistentExtensions(<8 x i8> %x, <8 x i8> %y) { ; If one operand has a zero-extend and the other a sign-extend, smull ; cannot be used. ; CHECK-LABEL: smullWithInconsistentExtensions: ; CHECK: mul {{v[0-9]+}}.8h, {{v[0-9]+}}.8h, {{v[0-9]+}}.8h - %1 = sext <8 x i8> %vec to <8 x i16> - %2 = mul <8 x i16> %1, <i16 255, i16 255, i16 255, i16 255, i16 255, i16 255, i16 255, i16 255> - %3 = extractelement <8 x i16> %2, i32 0 - ret i16 %3 + %s = sext <8 x i8> %x to <8 x i16> + %z = zext <8 x i8> %y to <8 x i16> + %m = mul <8 x i16> %s, %z + %r = extractelement <8 x i16> %m, i32 0 + ret i16 %r } define void @distribute(i16* %dst, i8* %src, i32 %mul) nounwind { |