File: store_op_load_fold2.ll

package info (click to toggle)
llvm-toolchain-17 1%3A17.0.6-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,799,624 kB
  • sloc: cpp: 6,428,607; ansic: 1,383,196; asm: 793,408; python: 223,504; objc: 75,364; f90: 60,502; lisp: 33,869; pascal: 15,282; sh: 9,684; perl: 7,453; ml: 4,937; awk: 3,523; makefile: 2,889; javascript: 2,149; xml: 888; fortran: 619; cs: 573
file content (29 lines) | stat: -rw-r--r-- 1,636 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
; RUN: llc < %s -mtriple=i686-linux -mcpu=corei7 -x86-asm-syntax=att | FileCheck %s -check-prefix=ATT
; RUN: llc < %s -mtriple=i686-linux -mcpu=corei7 -x86-asm-syntax=intel | FileCheck %s -check-prefix=INTEL

target datalayout = "e-p:32:32"
        %struct.Macroblock = type { i32, i32, i32, i32, i32, [8 x i32], ptr, ptr, i32, [2 x [4 x [4 x [2 x i32]]]], [16 x i8], [16 x i8], i32, i64, [4 x i32], [4 x i32], i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, double, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

define internal fastcc i32 @dct_chroma(i32 %uv, i32 %cr_cbp) nounwind {
cond_true2732.preheader:                ; preds = %entry
        %tmp2666 = getelementptr %struct.Macroblock, ptr null, i32 0, i32 13                ; <ptr> [#uses=2]
        %tmp2674 = trunc i32 0 to i8            ; <i8> [#uses=1]
        %tmp2667.us.us = load i64, ptr %tmp2666             ; <i64> [#uses=1]
        %tmp2670.us.us = load i64, ptr null         ; <i64> [#uses=1]
        %shift.upgrd.1 = zext i8 %tmp2674 to i64                ; <i64> [#uses=1]
        %tmp2675.us.us = shl i64 %tmp2670.us.us, %shift.upgrd.1         ; <i64> [#uses=1]
        %tmp2675not.us.us = xor i64 %tmp2675.us.us, -1          ; <i64> [#uses=1]
        %tmp2676.us.us = and i64 %tmp2667.us.us, %tmp2675not.us.us              ; <i64> [#uses=1]
        store i64 %tmp2676.us.us, ptr %tmp2666
        ret i32 0

; INTEL-DAG: 	and	{{e..}}, dword ptr [356]
; INTEL-DAG:	and	dword ptr [360], {{e..}}
; INTEL:	mov	dword ptr [356], {{e..}}

; ATT-DAG: 	andl	356, %{{e..}}
; ATT-DAG:	andl	%{{e..}}, 360
; ATT:	movl	%{{e..}}, 356

}