~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/PowerPC/2007-04-24-InlineAsm-I-Modifier.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 -no-integrated-as | grep "foo r3, r4"
 
2
; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 -no-integrated-as | grep "bari r3, 47"
 
3
 
 
4
; PR1351
 
5
 
 
6
define i32 @test1(i32 %Y, i32 %X) nounwind {
 
7
        %tmp1 = tail call i32 asm "foo${1:I} $0, $1", "=r,rI"( i32 %X )
 
8
        ret i32 %tmp1
 
9
}
 
10
 
 
11
define i32 @test2(i32 %Y, i32 %X) nounwind {
 
12
        %tmp1 = tail call i32 asm "bar${1:I} $0, $1", "=r,rI"( i32 47 )
 
13
        ret i32 %tmp1
 
14
}