File: 2009-06-02-And32Imm.ll

package info (click to toggle)
llvm-3.0 3.0-10
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 75,412 kB
  • sloc: cpp: 468,043; asm: 109,345; ansic: 13,782; sh: 12,935; ml: 4,716; python: 4,351; perl: 2,096; makefile: 1,905; pascal: 1,578; exp: 389; xml: 283; lisp: 187; csh: 117
file content (14 lines) | stat: -rw-r--r-- 659 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llc < %s -march=systemz | grep nilf | count 1
; RUN: llc < %s -march=systemz | grep nill | count 1

define i32 @gnu_dev_major(i64 %__dev) nounwind readnone {
entry:
        %shr = lshr i64 %__dev, 8               ; <i64> [#uses=1]
        %shr8 = trunc i64 %shr to i32           ; <i32> [#uses=1]
        %shr2 = lshr i64 %__dev, 32             ; <i64> [#uses=1]
        %conv = trunc i64 %shr2 to i32          ; <i32> [#uses=1]
        %and3 = and i32 %conv, -4096            ; <i32> [#uses=1]
        %and6 = and i32 %shr8, 4095             ; <i32> [#uses=1]
        %conv5 = or i32 %and6, %and3            ; <i32> [#uses=1]
        ret i32 %conv5
}