mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
6c81b118ca
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178486 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
303 B
LLVM
15 lines
303 B
LLVM
; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu -mcpu=g5 | FileCheck %s
|
|
|
|
define void @test(float %F, i8* %P) {
|
|
%I = fptosi float %F to i32
|
|
%X = trunc i32 %I to i8
|
|
store i8 %X, i8* %P
|
|
ret void
|
|
; CHECK: fctiwz 0, 1
|
|
; CHECK: stfiwx 0, 0, 4
|
|
; CHECK: lwz 4, 12(1)
|
|
; CHECK: stb 4, 0(3)
|
|
; CHECK: blr
|
|
}
|
|
|