X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FX86%2Ffast-isel-tls.ll;h=18bb9c13ff0175eaed288ba21c07e7e4736af931;hb=5a70dd1d8286faa4713b60da7621094d892e2ffc;hp=4dd14e6b2163140ab0203157906fb7ea6003c345;hpb=e9865945ad8286a007d8b8465703c5b242f94caa;p=oota-llvm.git diff --git a/test/CodeGen/X86/fast-isel-tls.ll b/test/CodeGen/X86/fast-isel-tls.ll index 4dd14e6b216..18bb9c13ff0 100644 --- a/test/CodeGen/X86/fast-isel-tls.ll +++ b/test/CodeGen/X86/fast-isel-tls.ll @@ -1,10 +1,26 @@ -; RUN: llvm-as < %s | llc -march=x86 -relocation-model=pic -mtriple=i686-unknown-linux-gnu -fast-isel | grep __tls_get_addr +; RUN: llc < %s -march=x86 -relocation-model=pic -mtriple=i686-unknown-linux-gnu -fast-isel | FileCheck %s ; PR3654 @v = thread_local global i32 0 define i32 @f() nounwind { entry: - %t = load i32* @v + %t = load i32, i32* @v %s = add i32 %t, 1 ret i32 %s } + +; CHECK-LABEL: f: +; CHECK: leal v@TLSGD +; CHECK: __tls_get_addr + +@alias = internal alias i32* @v +define i32 @f_alias() nounwind { +entry: + %t = load i32, i32* @v + %s = add i32 %t, 1 + ret i32 %s +} + +; CHECK-LABEL: f_alias: +; CHECK: leal v@TLSGD +; CHECK: __tls_get_addr