blob: 1012918abde30c8b86949d248aee534d352f0963 [file] [edit]
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lasx < %s | FileCheck %s
; RUN: llc --mtriple=loongarch64 --mattr=+lasx < %s | FileCheck %s
;; https://github.com/llvm/llvm-project/pull/207316#issuecomment-4978234865
define void @exth_wu_bu() nounwind {
; CHECK-LABEL: exth_wu_bu:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: xvrepli.b $xr0, 0
; CHECK-NEXT: xvst $xr0, $zero, 0
; CHECK-NEXT: ret
entry:
%0 = shufflevector <16 x i8> zeroinitializer, <16 x i8> zeroinitializer,
<8 x i32> <i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15>
%1 = zext <8 x i8> %0 to <8 x i32>
store <8 x i32> %1, ptr null
ret void
}