mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 18:42:46 +02:00
[X86] Added testcases for PR47024 and PR46315
This commit is contained in:
parent
7703373325
commit
96beb2ab81
32
test/CodeGen/X86/mov-zero-to-xor.ll
Normal file
32
test/CodeGen/X86/mov-zero-to-xor.ll
Normal file
@ -0,0 +1,32 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
||||
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
|
||||
|
||||
declare void @foo(i64, i64, i64, i64, i64, i64)
|
||||
declare void @bar(i32, i32, i32, i32, i32)
|
||||
|
||||
define void @pr47024() {
|
||||
; CHECK-LABEL: pr47024:
|
||||
; CHECK: # %bb.0:
|
||||
; CHECK-NEXT: movabsq $21542142465, %rdi # imm = 0x504030201
|
||||
; CHECK-NEXT: movabsq $723401749922909195, %rdx # imm = 0xA0A0A0F0E0D0C0B
|
||||
; CHECK-NEXT: movabsq $723401728380766730, %rcx # imm = 0xA0A0A0A0A0A0A0A
|
||||
; CHECK-NEXT: movabsq $1446803478303675925, %r8 # imm = 0x1414141918171615
|
||||
; CHECK-NEXT: movabsq $798285110420182026, %r9 # imm = 0xB1414141414140A
|
||||
; CHECK-NEXT: xorl %esi, %esi
|
||||
; CHECK-NEXT: jmp foo # TAILCALL
|
||||
tail call void @foo(i64 21542142465, i64 0, i64 723401749922909195, i64 723401728380766730, i64 1446803478303675925, i64 798285110420182026)
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @pr46315() {
|
||||
; CHECK-LABEL: pr46315:
|
||||
; CHECK: # %bb.0:
|
||||
; CHECK-NEXT: xorl %edi, %edi
|
||||
; CHECK-NEXT: xorl %esi, %esi
|
||||
; CHECK-NEXT: movl $2, %edx
|
||||
; CHECK-NEXT: movl $3, %ecx
|
||||
; CHECK-NEXT: movl $1, %r8d
|
||||
; CHECK-NEXT: jmp bar # TAILCALL
|
||||
tail call void @bar(i32 0, i32 0, i32 2, i32 3, i32 1)
|
||||
ret void
|
||||
}
|
Loading…
Reference in New Issue
Block a user