diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-24 01:58:48 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-24 01:58:48 +0000 |
commit | 847a9c6d778b3209683a92fcb37708b2e8b08f3f (patch) | |
tree | 22f2c5e0ca88f3b7bcaddf2710e3f6a71e3462be /test/CodeGen/X86/fast-cc-pass-in-regs.ll | |
parent | adf38913f815a2a453d4783e88b1528473b4740d (diff) | |
download | llvm-847a9c6d778b3209683a92fcb37708b2e8b08f3f.tar.gz llvm-847a9c6d778b3209683a92fcb37708b2e8b08f3f.tar.bz2 llvm-847a9c6d778b3209683a92fcb37708b2e8b08f3f.tar.xz |
Change x86_fastcallcc to require inreg markers. This allows it to known
the difference from "int x" (which should go in registers and
"struct y {int x;}" (which should not).
Clang will be updated in the next patches.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166536 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/fast-cc-pass-in-regs.ll')
-rw-r--r-- | test/CodeGen/X86/fast-cc-pass-in-regs.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/X86/fast-cc-pass-in-regs.ll b/test/CodeGen/X86/fast-cc-pass-in-regs.ll index a96e5043fe..b60b68bd38 100644 --- a/test/CodeGen/X86/fast-cc-pass-in-regs.ll +++ b/test/CodeGen/X86/fast-cc-pass-in-regs.ll @@ -1,7 +1,7 @@ ; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | FileCheck %s ; check that fastcc is passing stuff in regs. -declare x86_fastcallcc i64 @callee(i64) +declare x86_fastcallcc i64 @callee(i64 inreg) define i64 @caller() { %X = call x86_fastcallcc i64 @callee( i64 4294967299 ) ; <i64> [#uses=1] @@ -9,7 +9,7 @@ define i64 @caller() { ret i64 %X } -define x86_fastcallcc i64 @caller2(i64 %X) { +define x86_fastcallcc i64 @caller2(i64 inreg %X) { ret i64 %X ; CHECK: mov{{.*}}EAX, ECX } |