mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[X86] Autogenerate complete checks. NFC
This commit is contained in:
parent
ea1ebf9d95
commit
1c05648385
@ -1,8 +1,11 @@
|
|||||||
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
||||||
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl | FileCheck %s
|
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl | FileCheck %s
|
||||||
|
|
||||||
; CHECK-LABEL: @foo
|
|
||||||
; CHECK: orb $16
|
|
||||||
define void @foo(i64* %ptr) {
|
define void @foo(i64* %ptr) {
|
||||||
|
; CHECK-LABEL: foo:
|
||||||
|
; CHECK: ## %bb.0:
|
||||||
|
; CHECK-NEXT: orb $16, (%rdi)
|
||||||
|
; CHECK-NEXT: retq
|
||||||
%r11 = load i64, i64* %ptr, align 8
|
%r11 = load i64, i64* %ptr, align 8
|
||||||
%r12 = or i64 16, %r11
|
%r12 = or i64 16, %r11
|
||||||
store i64 %r12, i64* %ptr, align 8
|
store i64 %r12, i64* %ptr, align 8
|
||||||
|
@ -1,28 +1,31 @@
|
|||||||
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
||||||
; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s
|
; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s
|
||||||
|
|
||||||
%struct.bf = type { i64, i16, i16, i32 }
|
%struct.bf = type { i64, i16, i16, i32 }
|
||||||
@bfi = common global %struct.bf zeroinitializer, align 16
|
@bfi = common global %struct.bf zeroinitializer, align 16
|
||||||
|
|
||||||
define void @t1() nounwind optsize ssp {
|
define void @t1() nounwind optsize ssp {
|
||||||
|
; CHECK-LABEL: t1:
|
||||||
|
; CHECK: # %bb.0: # %entry
|
||||||
|
; CHECK-NEXT: orb $1, bfi+{{.*}}(%rip)
|
||||||
|
; CHECK-NEXT: retq
|
||||||
entry:
|
entry:
|
||||||
%0 = load i32, i32* bitcast (i16* getelementptr (%struct.bf, %struct.bf* @bfi, i32 0, i32 1) to i32*), align 8
|
%0 = load i32, i32* bitcast (i16* getelementptr (%struct.bf, %struct.bf* @bfi, i32 0, i32 1) to i32*), align 8
|
||||||
%1 = or i32 %0, 65536
|
%1 = or i32 %0, 65536
|
||||||
store i32 %1, i32* bitcast (i16* getelementptr (%struct.bf, %struct.bf* @bfi, i32 0, i32 1) to i32*), align 8
|
store i32 %1, i32* bitcast (i16* getelementptr (%struct.bf, %struct.bf* @bfi, i32 0, i32 1) to i32*), align 8
|
||||||
ret void
|
ret void
|
||||||
|
|
||||||
; CHECK-LABEL: t1:
|
|
||||||
; CHECK: orb $1
|
|
||||||
; CHECK-NEXT: ret
|
|
||||||
}
|
}
|
||||||
|
|
||||||
define void @t2() nounwind optsize ssp {
|
define void @t2() nounwind optsize ssp {
|
||||||
|
; CHECK-LABEL: t2:
|
||||||
|
; CHECK: # %bb.0: # %entry
|
||||||
|
; CHECK-NEXT: orl $16842752, bfi+{{.*}}(%rip) # imm = 0x1010000
|
||||||
|
; CHECK-NEXT: retq
|
||||||
entry:
|
entry:
|
||||||
%0 = load i32, i32* bitcast (i16* getelementptr (%struct.bf, %struct.bf* @bfi, i32 0, i32 1) to i32*), align 8
|
%0 = load i32, i32* bitcast (i16* getelementptr (%struct.bf, %struct.bf* @bfi, i32 0, i32 1) to i32*), align 8
|
||||||
%1 = or i32 %0, 16842752
|
%1 = or i32 %0, 16842752
|
||||||
store i32 %1, i32* bitcast (i16* getelementptr (%struct.bf, %struct.bf* @bfi, i32 0, i32 1) to i32*), align 8
|
store i32 %1, i32* bitcast (i16* getelementptr (%struct.bf, %struct.bf* @bfi, i32 0, i32 1) to i32*), align 8
|
||||||
ret void
|
ret void
|
||||||
|
|
||||||
; CHECK-LABEL: t2:
|
|
||||||
; CHECK: orl $16842752
|
|
||||||
; CHECK-NEXT: ret
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user