mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +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.
37 lines
1.1 KiB
LLVM
37 lines
1.1 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -mtriple=x86_64-unknown-linux %s -o - | FileCheck %s
|
|
|
|
@x = dso_local global i8 0, align 1
|
|
@y = dso_local global i32 0, align 4
|
|
@z = dso_local global i24 0, align 4
|
|
|
|
define dso_local void @PR35761(i32 %call) {
|
|
; CHECK-LABEL: PR35761:
|
|
; CHECK: # %bb.0: # %entry
|
|
; CHECK-NEXT: movzbl x(%rip), %eax
|
|
; CHECK-NEXT: andl $1, %eax
|
|
; CHECK-NEXT: movzbl y(%rip), %ecx
|
|
; CHECK-NEXT: xorl $255, %ecx
|
|
; CHECK-NEXT: orl %eax, %ecx
|
|
; CHECK-NEXT: movw %cx, z(%rip)
|
|
; CHECK-NEXT: movb $0, z+2(%rip)
|
|
; CHECK-NEXT: retq
|
|
entry:
|
|
%0 = load i8, i8* @x, align 1
|
|
%tobool = trunc i8 %0 to i1
|
|
%conv = zext i1 %tobool to i32
|
|
%or = or i32 32767, %call
|
|
%neg = xor i32 %or, -1
|
|
%neg1 = xor i32 %neg, -1
|
|
%1 = load i32, i32* @y, align 4
|
|
%xor = xor i32 %neg1, %1
|
|
%or2 = or i32 %conv, %xor
|
|
%conv3 = trunc i32 %or2 to i8
|
|
%bf.load = load i24, i24* @z, align 4
|
|
%2 = zext i8 %conv3 to i24
|
|
%bf.value = and i24 %2, 4194303
|
|
store i24 %bf.value, i24* @z, align 2
|
|
ret void
|
|
}
|
|
|