Dan Gohman | 36a0947 | 2009-09-08 23:54:48 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=x86 -mtriple=i386-linux-gnu > %t |
Evan Cheng | 2bce5f4b | 2010-04-28 08:30:49 +0000 | [diff] [blame] | 2 | ; RUN: grep {movzwl %gs:i@NTPOFF, %eax} %t |
Dan Gohman | 36a0947 | 2009-09-08 23:54:48 +0000 | [diff] [blame] | 3 | ; RUN: llc < %s -march=x86-64 -mtriple=x86_64-linux-gnu > %t2 |
Evan Cheng | 2bce5f4b | 2010-04-28 08:30:49 +0000 | [diff] [blame] | 4 | ; RUN: grep {movzwl %fs:i@TPOFF, %eax} %t2 |
Rafael Espindola | b316f90 | 2009-03-11 22:40:04 +0000 | [diff] [blame] | 5 | |
| 6 | @i = thread_local global i16 15 |
| 7 | |
| 8 | define i16 @f() { |
| 9 | entry: |
| 10 | %tmp1 = load i16* @i |
| 11 | ret i16 %tmp1 |
| 12 | } |