26 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc -mtriple=amdgcn-amd-amdpal -mcpu=gfx900 -O1 %s -o - | FileCheck %s3 4define amdgpu_ps <4 x float> @caller(ptr %ptr) {5; CHECK-LABEL: caller:6; CHECK: ; %bb.0:7; CHECK-NEXT: flat_load_dword v1, v[0:1]8; CHECK-NEXT: s_mov_b32 s0, 09; CHECK-NEXT: s_mov_b32 s1, 010; CHECK-NEXT: s_mov_b32 s2, 011; CHECK-NEXT: s_mov_b32 s5, fn@abs32@hi12; CHECK-NEXT: s_mov_b32 s4, fn@abs32@lo13; CHECK-NEXT: s_mov_b64 s[8:9], 014; CHECK-NEXT: v_mov_b32_e32 v0, 015; CHECK-NEXT: s_mov_b32 s3, 016; CHECK-NEXT: v_mov_b32_e32 v2, 017; CHECK-NEXT: s_mov_b32 s32, 018; CHECK-NEXT: s_swappc_b64 s[30:31], s[4:5]19; CHECK-NEXT: ; return to shader part epilog20 %L = load i32, ptr %ptr, align 421 %R = call <4 x float> @fn(<4 x i32> zeroinitializer, i32 0, i32 %L, i32 0)22 ret <4 x float> %R23}24 25declare hidden <4 x float> @fn(<4 x i32> inreg, i32, i32, i32)26