[llvm-commits] [llvm] r159771 - /llvm/trunk/test/CodeGen/Mips/rdhwr-directives.ll
Akira Hatanaka
ahatanaka at mips.com
Thu Jul 5 12:29:31 PDT 2012
Author: ahatanak
Date: Thu Jul 5 14:29:31 2012
New Revision: 159771
URL: http://llvm.org/viewvc/llvm-project?rev=159771&view=rev
Log:
test case for r159770.
Added:
llvm/trunk/test/CodeGen/Mips/rdhwr-directives.ll
Added: llvm/trunk/test/CodeGen/Mips/rdhwr-directives.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Mips/rdhwr-directives.ll?rev=159771&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/Mips/rdhwr-directives.ll (added)
+++ llvm/trunk/test/CodeGen/Mips/rdhwr-directives.ll Thu Jul 5 14:29:31 2012
@@ -0,0 +1,15 @@
+; RUN: llc -march=mipsel -mcpu=mips32 -relocation-model=static < %s | FileCheck %s
+
+ at a = external thread_local global i32
+
+define i32 @foo() nounwind readonly {
+entry:
+; CHECK: .set push
+; CHECK: .set mips32r2
+; CHECK: rdhwr
+; CHECK: .set pop
+
+ %0 = load i32* @a, align 4
+ ret i32 %0
+}
+
More information about the llvm-commits
mailing list