~ubuntu-branches/ubuntu/trusty/llvm-toolchain-snapshot/trusty-201310232150

« back to all changes in this revision

Viewing changes to test/CodeGen/SystemZ/asm-16.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-27 15:01:57 UTC
  • mfrom: (0.10.1) (0.9.1) (0.8.1) (0.7.1) (0.6.1) (0.5.2)
  • Revision ID: package-import@ubuntu.com-20130527150157-tdkrsjpuvht7v0qx
Tags: 1:3.4~svn182733-1~exp1
* New snapshot release (3.4 release)
* Add a symlink of libLLVM-3.4.so.1 to usr/lib/llvm-3.4/lib/libLLVM-3.4.so
    to fix make the llvm-config-3.4 --libdir work (Closes: #708677)
  * Various packages rename to allow co installations:
    * libclang1 => libclang1-3.4
    * libclang1-dbg => libclang1-3.4-dbg
    * libclang-dev => libclang-3.4-dev
    * libclang-common-dev => libclang-common-3.4-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; Test the "M" constraint (0x7fffffff)
 
2
;
 
3
; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
 
4
 
 
5
; Test 1 below the valid value.
 
6
define i32 @f1() {
 
7
; CHECK: f1:
 
8
; CHECK: iilf [[REG:%r[0-5]]], 2147483646
 
9
; CHECK: blah %r2 [[REG]]
 
10
; CHECK: br %r14
 
11
  %val = call i32 asm "blah $0 $1", "=&r,rM" (i32 2147483646)
 
12
  ret i32 %val
 
13
}
 
14
 
 
15
; Test the first valid value.
 
16
define i32 @f2() {
 
17
; CHECK: f2:
 
18
; CHECK: blah %r2 2147483647
 
19
; CHECK: br %r14
 
20
  %val = call i32 asm "blah $0 $1", "=&r,rM" (i32 2147483647)
 
21
  ret i32 %val
 
22
}
 
23
 
 
24
; Test 1 above the valid value.
 
25
define i32 @f3() {
 
26
; CHECK: f3:
 
27
; CHECK: llilh [[REG:%r[0-5]]], 32768
 
28
; CHECK: blah %r2 [[REG]]
 
29
; CHECK: br %r14
 
30
  %val = call i32 asm "blah $0 $1", "=&r,rM" (i32 2147483648)
 
31
  ret i32 %val
 
32
}