diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
commit | 01095a5d43bbfde13731688ddcf6048ebb8b7721 (patch) | |
tree | 4def12e759965de927d963ac65840d663ef9d1ea /test/CodeGen/SPARC/inlineasm.ll | |
parent | f0f4822ed4b66e3579e92a89f368f8fb860e218e (diff) |
Diffstat (limited to 'test/CodeGen/SPARC/inlineasm.ll')
-rw-r--r-- | test/CodeGen/SPARC/inlineasm.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/SPARC/inlineasm.ll b/test/CodeGen/SPARC/inlineasm.ll index d54c5c6bc7801..af631f0d29f54 100644 --- a/test/CodeGen/SPARC/inlineasm.ll +++ b/test/CodeGen/SPARC/inlineasm.ll @@ -8,6 +8,18 @@ entry: ret i32 %0 } +;; Check tests only that the constraints are accepted without a compiler failure. +; CHECK-LABEL: test_constraints_nro: +%struct.anon = type { i32, i32 } +@v = external global %struct.anon, align 4 +define void @test_constraints_nro() { +entry: + %0 = load i32, i32* getelementptr inbounds (%struct.anon, %struct.anon* @v, i32 0, i32 0); + %1 = load i32, i32* getelementptr inbounds (%struct.anon, %struct.anon* @v, i32 0, i32 1); + tail call void asm sideeffect "", "nro,nro"(i32 %0, i32 %1) + ret void +} + ; CHECK-LABEL: test_constraint_I: ; CHECK: add %o0, 1023, %o0 define i32 @test_constraint_I(i32 %a) { |