mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
18451cc4a4
The motivation is that the update script has at least two deviations (`<...>@GOT`/`<...>@PLT`/ and not hiding pointer arithmetics) from what pretty much all the checklines were generated with, and most of the tests are still not updated, so each time one of the non-up-to-date tests is updated to see the effect of the code change, there is a lot of noise. Instead of having to deal with that each time, let's just deal with everything at once. This has been done via: ``` cd llvm-project/llvm/test/CodeGen/X86 grep -rl "; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py" | xargs -L1 <...>/llvm-project/llvm/utils/update_llc_test_checks.py --llc-binary <...>/llvm-project/build/bin/llc ``` Not all tests were regenerated, however.
42 lines
1.5 KiB
LLVM
42 lines
1.5 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=x86_64-linux-pc -mcpu=corei7 | FileCheck %s
|
|
|
|
declare <4 x i32> @llvm.umin.v4i32(<4 x i32>, <4 x i32>)
|
|
|
|
define <2 x i16> @good(<4 x i32>*, <4 x i8>*) {
|
|
; CHECK-LABEL: good:
|
|
; CHECK: # %bb.0: # %entry
|
|
; CHECK-NEXT: movdqa (%rdi), %xmm0
|
|
; CHECK-NEXT: pminud {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0
|
|
; CHECK-NEXT: retq
|
|
entry:
|
|
%2 = load <4 x i32>, <4 x i32>* %0, align 16
|
|
%3 = call <4 x i32> @llvm.umin.v4i32(<4 x i32> %2, <4 x i32> <i32 127, i32 127, i32 127, i32 127>)
|
|
%4 = extractelement <4 x i32> %3, i32 0
|
|
%5 = extractelement <4 x i32> %3, i32 1
|
|
%6 = extractelement <4 x i32> %3, i32 2
|
|
%7 = extractelement <4 x i32> %3, i32 3
|
|
%8 = bitcast i32 %4 to <2 x i16>
|
|
%9 = bitcast i32 %5 to <2 x i16>
|
|
ret <2 x i16> %8
|
|
}
|
|
|
|
define <2 x i16> @bad(<4 x i32>*, <4 x i8>*) {
|
|
; CHECK-LABEL: bad:
|
|
; CHECK: # %bb.0: # %entry
|
|
; CHECK-NEXT: movdqa (%rdi), %xmm0
|
|
; CHECK-NEXT: pminud {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0
|
|
; CHECK-NEXT: pshufd {{.*#+}} xmm0 = xmm0[1,1,1,1]
|
|
; CHECK-NEXT: retq
|
|
entry:
|
|
%2 = load <4 x i32>, <4 x i32>* %0, align 16
|
|
%3 = call <4 x i32> @llvm.umin.v4i32(<4 x i32> %2, <4 x i32> <i32 127, i32 127, i32 127, i32 127>)
|
|
%4 = extractelement <4 x i32> %3, i32 0
|
|
%5 = extractelement <4 x i32> %3, i32 1
|
|
%6 = extractelement <4 x i32> %3, i32 2
|
|
%7 = extractelement <4 x i32> %3, i32 3
|
|
%8 = bitcast i32 %4 to <2 x i16>
|
|
%9 = bitcast i32 %5 to <2 x i16>
|
|
ret <2 x i16> %9
|
|
}
|