bolt/deps/llvm-18.1.8/llvm/test/Transforms/InstCombine/AMDGPU/permlane64.ll
2025-02-14 19:21:04 +01:00

13 lines
416 B
LLVM

; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -mtriple=amdgcn-amd-amdhsa -passes=instcombine -S | FileCheck %s
; Optimize the intrinsic away if the argument is uniform.
define i32 @test_constant() {
; CHECK-LABEL: @test_constant(
; CHECK-NEXT: ret i32 99
;
%call = call i32 @llvm.amdgcn.permlane64(i32 99)
ret i32 %call
}
declare i32 @llvm.amdgcn.permlane64(i32)