brintos

brintos / llvm-project-archived public Read only

0
0
Text · 516 B · 393686f Raw
15 lines · plain
1; RUN: not llc -global-isel=0 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -filetype=null %s 2>&1 | FileCheck %s2; RUN: not llc -global-isel -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -filetype=null %s 2>&1 | FileCheck %s3 4; FIXME: To actually support stackguard, need to fix intrinsic to5; return pointer in any address space.6 7; CHECK: error: unable to lower stackguard8define i1 @test_stackguard(ptr %p1) {9  %p2 = call ptr @llvm.stackguard()10  %res = icmp ne ptr %p2, %p111  ret i1 %res12}13 14declare ptr @llvm.stackguard()15