forked from OSchip/llvm-project
15 lines
493 B
LLVM
15 lines
493 B
LLVM
; RUN: llc -mcpu=generic -mtriple=powerpc64le-unknown-unknown -O0 < %s | FileCheck %s --check-prefix=GENERIC
|
|
; RUN: llc -mcpu=ppc -mtriple=powerpc64le-unknown-unknown -O0 < %s | FileCheck %s
|
|
|
|
define i32 @bad(double %x) {
|
|
%1 = fptoui double %x to i32
|
|
ret i32 %1
|
|
}
|
|
|
|
; CHECK: fctidz [[REG0:[0-9]+]], 1
|
|
; CHECK: stfd [[REG0]], [[OFF:.*]](1)
|
|
; CHECK: lwz {{[0-9]*}}, [[OFF]](1)
|
|
; GENERIC: fctiwuz [[REG0:[0-9]+]], 1
|
|
; GENERIC: stfd [[REG0]], [[OFF:.*]](1)
|
|
; GENERIC: lwz {{[0-9]*}}, [[OFF]](1)
|