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

« back to all changes in this revision

Viewing changes to test/CodeGen/SystemZ/asm-14.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 "L" constraint (20-bit signed constants).
 
2
;
 
3
; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
 
4
 
 
5
; Test 1 below the first valid value.
 
6
define i32 @f1() {
 
7
; CHECK: f1:
 
8
; CHECK: iilf [[REG:%r[0-5]]], 4294443007
 
9
; CHECK: blah %r2 [[REG]]
 
10
; CHECK: br %r14
 
11
  %val = call i32 asm "blah $0 $1", "=&r,rL" (i32 -524289)
 
12
  ret i32 %val
 
13
}
 
14
 
 
15
; Test the first valid value.
 
16
define i32 @f2() {
 
17
; CHECK: f2:
 
18
; CHECK: blah %r2 -524288
 
19
; CHECK: br %r14
 
20
  %val = call i32 asm "blah $0 $1", "=&r,rL" (i32 -524288)
 
21
  ret i32 %val
 
22
}
 
23
 
 
24
; Test the last valid value.
 
25
define i32 @f3() {
 
26
; CHECK: f3:
 
27
; CHECK: blah %r2 524287
 
28
; CHECK: br %r14
 
29
  %val = call i32 asm "blah $0 $1", "=&r,rL" (i32 524287)
 
30
  ret i32 %val
 
31
}
 
32
 
 
33
; Test 1 above the last valid value.
 
34
define i32 @f4() {
 
35
; CHECK: f4:
 
36
; CHECK: llilh [[REG:%r[0-5]]], 8
 
37
; CHECK: blah %r2 [[REG]]
 
38
; CHECK: br %r14
 
39
  %val = call i32 asm "blah $0 $1", "=&r,rL" (i32 524288)
 
40
  ret i32 %val
 
41
}