From 129d8126add72406cb1568b568c986a4ca6aa968 Mon Sep 17 00:00:00 2001 From: scchan Date: Wed, 6 Apr 2016 12:54:08 -0500 Subject: [PATCH] fix shuffle due to dpp builtin interface change --- lib/amd_gcn.ll | 50 +++++++++++++++++++++++--------------------------- 1 file changed, 23 insertions(+), 27 deletions(-) diff --git a/lib/amd_gcn.ll b/lib/amd_gcn.ll index f9c82ea278c..0101017075b 100644 --- a/lib/amd_gcn.ll +++ b/lib/amd_gcn.ll @@ -1,37 +1,33 @@ - - - - define linkonce_odr spir_func i32 @amdgcn_wave_rshift_1(i32 %v) #1 { - %call = call i32 @llvm.amdgcn.mov.dpp.i32(i32 %v, i32 312, i1 0, i32 15, i32 15) + %call = call i32 @llvm.amdgcn.mov.dpp.i32(i32 %v, i32 312, i32 15, i32 15, i1 0) ret i32 %call } define linkonce_odr spir_func i32 @amdgcn_wave_rshift_zero_1(i32 %v) #1 { - %call = call i32 @llvm.amdgcn.mov.dpp.i32(i32 %v, i32 312, i1 1, i32 15, i32 15) + %call = call i32 @llvm.amdgcn.mov.dpp.i32(i32 %v, i32 312, i32 15, i32 15, i1 1) ret i32 %call } define linkonce_odr spir_func i32 @amdgcn_wave_rrotate_1(i32 %v) #1 { - %call = call i32 @llvm.amdgcn.mov.dpp.i32(i32 %v, i32 316, i1 0, i32 15, i32 15) + %call = call i32 @llvm.amdgcn.mov.dpp.i32(i32 %v, i32 316, i32 15, i32 15, i1 0) ret i32 %call } define linkonce_odr spir_func i32 @amdgcn_wave_lshift_1(i32 %v) #1 { - %call = call i32 @llvm.amdgcn.mov.dpp.i32(i32 %v, i32 304, i1 0, i32 15, i32 15) + %call = call i32 @llvm.amdgcn.mov.dpp.i32(i32 %v, i32 304, i32 15, i32 15, i1 0) ret i32 %call } define linkonce_odr spir_func i32 @amdgcn_wave_lshift_zero_1(i32 %v) #1 { - %call = call i32 @llvm.amdgcn.mov.dpp.i32(i32 %v, i32 304, i1 1, i32 15, i32 15) + %call = call i32 @llvm.amdgcn.mov.dpp.i32(i32 %v, i32 304, i32 15, i32 15, i1 1) ret i32 %call } define linkonce_odr spir_func i32 @amdgcn_wave_lrotate_1(i32 %v) #1 { - %call = call i32 @llvm.amdgcn.mov.dpp.i32(i32 %v, i32 308, i1 0, i32 15, i32 15) + %call = call i32 @llvm.amdgcn.mov.dpp.i32(i32 %v, i32 308, i32 15, i32 15, i1 0) ret i32 %call } @@ -58,63 +54,63 @@ define linkonce_odr spir_func i32 @amdgcn_row_rshift(i32 %data, i32 %delta) #1 { ] ;