]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/AMDGPU/early-inline-alias.ll
Vendor import of llvm trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / test / CodeGen / AMDGPU / early-inline-alias.ll
1 ; RUN: opt -mtriple=amdgcn-- -O1 -S -inline-threshold=1 %s | FileCheck %s
2
3 ; CHECK: @add1alias = alias i32 (i32), i32 (i32)* @add1
4 ; CHECK: @add1alias2 = alias i32 (i32), i32 (i32)* @add1
5
6 @add1alias = alias i32 (i32), i32 (i32)* @add1
7 @add1alias2 = alias i32 (i32), i32 (i32)* @add1
8
9 define i32 @add1(i32) {
10   %2 = add nsw i32 %0, 1
11   ret i32 %2
12 }