[AVX512] add PSLLD and PSLLQ Intrinsic
[oota-llvm.git] / test / CodeGen / X86 / 2008-06-13-NotVolatileLoadStore.ll
1 ; RUN: llc < %s -march=x86 | FileCheck %s
2 ; These transforms are turned off for load volatiles and stores.
3 ; Check that they weren't turned off for all loads and stores!
4 ; CHECK-LABEL: f:
5 ; CHECK-NOT: movsd
6 ; CHECK: movw
7 ; CHECK: addw
8
9 @atomic = global double 0.000000e+00            ; <double*> [#uses=1]
10 @atomic2 = global double 0.000000e+00           ; <double*> [#uses=1]
11 @ioport = global i32 0          ; <i32*> [#uses=1]
12 @ioport2 = global i32 0         ; <i32*> [#uses=1]
13
14 define i16 @f(i64 %x) {
15         %b = bitcast i64 %x to double           ; <double> [#uses=1]
16         store double %b, double* @atomic
17         store double 0.000000e+00, double* @atomic2
18         %l = load i32, i32* @ioport             ; <i32> [#uses=1]
19         %t = trunc i32 %l to i16                ; <i16> [#uses=1]
20         %l2 = load i32, i32* @ioport2           ; <i32> [#uses=1]
21         %tmp = lshr i32 %l2, 16         ; <i32> [#uses=1]
22         %t2 = trunc i32 %tmp to i16             ; <i16> [#uses=1]
23         %f = add i16 %t, %t2            ; <i16> [#uses=1]
24         ret i16 %f
25 }