~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/Mips/inlineasm64.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 -march=mips64el -mcpu=mips64r2 -target-abi=n64 < %s | FileCheck %s
 
2
 
 
3
@gl2 = external global i64
 
4
@gl1 = external global i64
 
5
@gl0 = external global i64
 
6
 
 
7
define void @foo1() nounwind {
 
8
entry:
 
9
; CHECK: foo1
 
10
; CHECK: daddu
 
11
  %0 = load i64, i64* @gl1, align 8
 
12
  %1 = load i64, i64* @gl0, align 8
 
13
  %2 = tail call i64 asm "daddu $0, $1, $2", "=r,r,r"(i64 %0, i64 %1) nounwind
 
14
  store i64 %2, i64* @gl2, align 8
 
15
  ret void
 
16
}
 
17