diff options
author | Jack Carter <jcarter@mips.com> | 2012-06-21 21:37:54 +0000 |
---|---|---|
committer | Jack Carter <jcarter@mips.com> | 2012-06-21 21:37:54 +0000 |
commit | c457f620337db407de143681dd00931ff0b97502 (patch) | |
tree | c0e7890e65c25029f4275cd477e81563028fc934 /llvm/test/CodeGen/Generic/asm-large-immediate.ll | |
parent | 25cb4acdc29a32db239d884b26364344ba90f1c4 (diff) | |
download | bcm5719-llvm-c457f620337db407de143681dd00931ff0b97502.tar.gz bcm5719-llvm-c457f620337db407de143681dd00931ff0b97502.zip |
The inline asm operand modifier 'n' is suppose
to be generic across architectures. It has the
following description in the gnu sources:
Negate the immediate constant
Several Architectures such as x86 have local implementations
of operand modifier 'n' which go beyond the above description
slightly. This won't affect them.
Affected files:
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
Added 'n' to the switch cases.
test/CodeGen/Generic/asm-large-immediate.ll
Generic compiled test (x86 for me)
test/CodeGen/Mips/asm-large-immediate.ll
Mips compiled version of the generic one
Contributer: Jack Carter
llvm-svn: 158939
Diffstat (limited to 'llvm/test/CodeGen/Generic/asm-large-immediate.ll')
-rw-r--r-- | llvm/test/CodeGen/Generic/asm-large-immediate.ll | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/Generic/asm-large-immediate.ll b/llvm/test/CodeGen/Generic/asm-large-immediate.ll index 605665bef6d..d5d5eb69812 100644 --- a/llvm/test/CodeGen/Generic/asm-large-immediate.ll +++ b/llvm/test/CodeGen/Generic/asm-large-immediate.ll @@ -1,8 +1,11 @@ -; RUN: llc < %s | grep 68719476738 +; RUN: llc < %s | FileCheck %s define void @test() { entry: +; CHECK: /* result: 68719476738 */ tail call void asm sideeffect "/* result: ${0:c} */", "i,~{dirflag},~{fpsr},~{flags}"( i64 68719476738 ) +; CHECK: /* result: -68719476738 */ + tail call void asm sideeffect "/* result: ${0:n} */", "i,~{dirflag},~{fpsr},~{flags}"( i64 68719476738 ) ret void } |