1; Test autoupgrade of arch-specific thread pointer intrinsics 2; RUN: llvm-as < %s | llvm-dis | FileCheck %s 3 4declare i8* @llvm.aarch64.thread.pointer() 5declare i8* @llvm.arm.thread.pointer() 6 7define i8* @test1() { 8; CHECK: test1() 9; CHECK: call i8* @llvm.thread.pointer() 10 %1 = call i8* @llvm.aarch64.thread.pointer() 11 ret i8 *%1 12} 13 14define i8* @test2() { 15; CHECK: test2() 16; CHECK: call i8* @llvm.thread.pointer() 17 %1 = call i8* @llvm.arm.thread.pointer() 18 ret i8 *%1 19} 20