summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/SPARC/LeonInsertNOPLoadPassUT.ll
diff options
context:
space:
mode:
authorJames Y Knight <jyknight@google.com>2016-08-12 14:48:09 +0000
committerJames Y Knight <jyknight@google.com>2016-08-12 14:48:09 +0000
commit2cc9da9a654ca1f9f90d1eaaea889516074f975f (patch)
treeb322c45c79fc2e10d8aa6eb750b2ecc23ee71db1 /llvm/test/CodeGen/SPARC/LeonInsertNOPLoadPassUT.ll
parent3785393def95f2b52ef28e9bcb3985066812d2db (diff)
downloadbcm5719-llvm-2cc9da9a654ca1f9f90d1eaaea889516074f975f.tar.gz
bcm5719-llvm-2cc9da9a654ca1f9f90d1eaaea889516074f975f.zip
Revert "[Sparc] Leon errata fix passes."
...and the two followup commits: Revert "[Sparc][Leon] Missed resetting option flags from check-in 278489." Revert "[Sparc][Leon] Errata fixes for various errata in different versions of the Leon variants of the Sparc 32 bit processor." This reverts commit r274856, r278489, and r278492. llvm-svn: 278511
Diffstat (limited to 'llvm/test/CodeGen/SPARC/LeonInsertNOPLoadPassUT.ll')
-rwxr-xr-xllvm/test/CodeGen/SPARC/LeonInsertNOPLoadPassUT.ll22
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/SPARC/LeonInsertNOPLoadPassUT.ll b/llvm/test/CodeGen/SPARC/LeonInsertNOPLoadPassUT.ll
index 9b4ceb7ea6a..57ae16227e7 100755
--- a/llvm/test/CodeGen/SPARC/LeonInsertNOPLoadPassUT.ll
+++ b/llvm/test/CodeGen/SPARC/LeonInsertNOPLoadPassUT.ll
@@ -19,3 +19,25 @@ define i32 @ld_i32_test(i32 *%p) {
%res = load i32, i32* %p
ret i32 %res
}
+
+; CHECK-LABEL: ld_inlineasm_test_1
+; CHECK: ld [%o0], %o0
+; CHECK-NEXT: !NO_APP
+; CHECK-NEXT: nop
+define float @ld_inlineasm_test_1(float* %a) {
+entry:
+ %res = tail call float asm sideeffect "ld [$1], $0", "=r,r"(float* %a)
+
+ ret float %res
+}
+
+; CHECK-LABEL: ld_inlineasm_test_2
+; CHECK: ld [%o0], %o0
+; CHECK-NEXT: !NO_APP
+; CHECK-NEXT: nop
+define i32 @ld_inlineasm_test_2(i32* %a) {
+entry:
+ %res = tail call i32 asm sideeffect "ld [$1], $0", "=r,r"(i32* %a)
+
+ ret i32 %res
+} \ No newline at end of file
OpenPOWER on IntegriCloud