1 ; RUN: opt -S < %s | FileCheck %s
3 ; The intrinsic firstly only took i8*, then it was made polimorphic, then
4 ; it was renamed to launder.invariant.group
5 define void @test(i8* %p1, i16* %p16) {
7 ; CHECK: %p2 = call i8* @llvm.launder.invariant.group.p0i8(i8* %p1)
8 ; CHECK: %p3 = call i8* @llvm.launder.invariant.group.p0i8(i8* %p1)
9 ; CHECK: %p4 = call i16* @llvm.launder.invariant.group.p0i16(i16* %p16)
10 %p2 = call i8* @llvm.invariant.group.barrier(i8* %p1)
11 %p3 = call i8* @llvm.invariant.group.barrier.p0i8(i8* %p1)
12 %p4 = call i16* @llvm.invariant.group.barrier.p0i16(i16* %p16)
16 ; CHECK: Function Attrs: inaccessiblememonly nounwind speculatable
17 ; CHECK: declare i8* @llvm.launder.invariant.group.p0i8(i8*)
18 ; CHECK: Function Attrs: inaccessiblememonly nounwind speculatable
19 ; CHECK: declare i16* @llvm.launder.invariant.group.p0i16(i16*)
20 declare i8* @llvm.invariant.group.barrier(i8*)
21 declare i8* @llvm.invariant.group.barrier.p0i8(i8*)
22 declare i16* @llvm.invariant.group.barrier.p0i16(i16*)