1 ; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s
3 ; Test using an integer literal constant.
4 ; Generated ASM should be:
5 ; ADD_INT KC0[2].Z literal.x, 5
7 ; ADD_INT literal.x KC0[2].Z, 5
10 ; CHECK: ADD_INT T{{[0-9]\.[XYZW]}}, KC0[2].Z, literal.x
13 define void @i32_literal(i32 addrspace(1)* %out, i32 %in) {
16 store i32 %0, i32 addrspace(1)* %out
20 ; Test using a float literal constant.
21 ; Generated ASM should be:
22 ; ADD KC0[2].Z literal.x, 5.0
24 ; ADD literal.x KC0[2].Z, 5.0
26 ; CHECK: @float_literal
27 ; CHECK: ADD T{{[0-9]\.[XYZW]}}, KC0[2].Z, literal.x
29 ; CHECK-NEXT: 1084227584(5.0
30 define void @float_literal(float addrspace(1)* %out, float %in) {
32 %0 = fadd float 5.0, %in
33 store float %0, float addrspace(1)* %out