blob: 0a807b1130a7ffdd57deb88a441eafc2d6b4bd32 [file] [log] [blame]
Tom Stellard75aadc22012-12-11 21:25:42 +00001;RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s
2
Vincent Lejeune3d5118c2013-05-17 16:50:56 +00003;CHECK: FLOOR * T{{[0-9]+\.[XYZW], PV\.[xyzw]}}
Tom Stellard75aadc22012-12-11 21:25:42 +00004
5define void @test() {
6 %r0 = call float @llvm.R600.load.input(i32 0)
7 %r1 = call float @floor(float %r0)
8 call void @llvm.AMDGPU.store.output(float %r1, i32 0)
9 ret void
10}
11
12declare float @llvm.R600.load.input(i32) readnone
13
14declare void @llvm.AMDGPU.store.output(float, i32)
15
16declare float @floor(float) readonly