blob: 3c10773dbb66c40b20c32790fa81844c4e7f8470 [file] [edit]
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
; RUN: llc -mtriple=x86_64 < %s | FileCheck %s
; LiveVariable Analysis transforms (inlineasm rax, eax) to (inlineasm dead rax, eax)
; instead of (inlineasm dead rax, dead eax). RegisterPressure fails at considering
; eax as dead register.
define i64 @pr155807(i64 %vecext) {
; CHECK-LABEL: pr155807:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: #APP
; CHECK-NEXT: #NO_APP
; CHECK-NEXT: movabsq $705425148255374, %rax # imm = 0x2819497609C8E
; CHECK-NEXT: xorl %edx, %edx
; CHECK-NEXT: idivq %rdi
; CHECK-NEXT: movq %rdx, %rax
; CHECK-NEXT: retq
entry:
tail call void asm sideeffect "", "~{rax},~{eax},~{dirflag},~{fpsr},~{flags}"()
%rem = srem i64 705425148255374, %vecext
ret i64 %rem
}