brintos

brintos / llvm-project-archived public Read only

0
0
Text · 668 B · 6aebca3 Raw
18 lines · plain
1; RUN: not llc -mtriple=xtensa -mattr=+threadptr -relocation-model=pic -filetype=null < %s 2>&1 \2; RUN: | FileCheck -check-prefix=XTENSA-PIC %s3; RUN: not llc -mtriple=xtensa -filetype=null < %s 2>&1 \4; RUN: | FileCheck -check-prefix=XTENSA-NO-THREADPTR %s5 6; XTENSA-PIC: error: <unknown>:0:0: in function f i32 (): only local-exec and initial-exec TLS mode supported7; XTENSA-PIC: error: <unknown>:0:0: in function f i32 (): PIC relocations are not supported8 9; XTENSA-NO-THREADPTR: error: <unknown>:0:0: in function f i32 (): only emulated TLS supported10 11@i = external thread_local global i3212 13define i32 @f() {14entry:15  %tmp1 = load i32, ptr @i16  ret i32 %tmp117}18