15 lines · plain
1; RUN: not llc < %s -mtriple=x86_64-apple-darwin 2>&1 | FileCheck %s2; RUN: not llc < %s -mtriple=x86_64-linux-gnueabi 2>&1 | FileCheck %s3 4define i32 @get_stack() nounwind {5entry:6; FIXME: Include an allocatable-specific error message7; CHECK: error: <unknown>:0:0: invalid register "eax" for llvm.read_register8 %sp = call i32 @llvm.read_register.i32(metadata !0)9 ret i32 %sp10}11 12declare i32 @llvm.read_register.i32(metadata) nounwind13 14!0 = !{!"eax\00"}15