diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-12 23:09:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-12 23:09:04 +0000 |
commit | b794107416227c14ed7040eb2503757d04ec7ddd (patch) | |
tree | d42271189f6d423979eda33fd5dc22449c45ec6e /test | |
parent | c6f4181923aef7c1d56d0d9955c1876ac0d87a8f (diff) | |
download | llvm-b794107416227c14ed7040eb2503757d04ec7ddd.tar.gz llvm-b794107416227c14ed7040eb2503757d04ec7ddd.tar.bz2 llvm-b794107416227c14ed7040eb2503757d04ec7ddd.tar.xz |
reg test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21914 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/fast-cc-pass-in-regs.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fast-cc-pass-in-regs.ll b/test/CodeGen/X86/fast-cc-pass-in-regs.ll new file mode 100644 index 0000000000..55dbcbfe93 --- /dev/null +++ b/test/CodeGen/X86/fast-cc-pass-in-regs.ll @@ -0,0 +1,14 @@ +; llvm-as < %s | llc -x86-asm-syntax=intel -enable-x86-fastcc | grep 'mov %EDX, 1' + +; check that fastcc is passing stuff in regs. + +declare fastcc long %callee(long) + +long %caller() { + %X = call fastcc long %callee(long 4294967299) ;; (1ULL << 32) + 3 + ret long %X +} + +fastcc long %caller2(long %X) { + ret long %X +} |