brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 4a750e6 Raw
41 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-- -mattr=sse2 | FileCheck %s --check-prefixes=ALL,OPT3; RUN: llc < %s -mtriple=i686-- -mattr=sse2 -O0 | FileCheck %s --check-prefixes=ALL,NOOPT4 5@x = external dso_local global double6 7define void @foo() nounwind  {8; OPT-LABEL: foo:9; OPT:       # %bb.0:10; OPT-NEXT:    movsd {{.*#+}} xmm0 = mem[0],zero11; OPT-NEXT:    xorps %xmm0, %xmm012; OPT-NEXT:    movsd %xmm0, x13; OPT-NEXT:    movsd %xmm0, x14; OPT-NEXT:    movsd {{.*#+}} xmm0 = mem[0],zero15; OPT-NEXT:    retl16;17; NOOPT-LABEL: foo:18; NOOPT:       # %bb.0:19; NOOPT-NEXT:    movsd {{.*#+}} xmm0 = mem[0],zero20; NOOPT-NEXT:    xorps %xmm0, %xmm021; NOOPT-NEXT:    movsd %xmm0, x22; NOOPT-NEXT:    xorps %xmm0, %xmm023; NOOPT-NEXT:    movsd %xmm0, x24; NOOPT-NEXT:    movsd {{.*#+}} xmm0 = mem[0],zero25; NOOPT-NEXT:    retl26  %a = load volatile double, ptr @x27  store volatile double 0.0, ptr @x28  store volatile double 0.0, ptr @x29  %b = load volatile double, ptr @x30  ret void31}32 33define void @bar() nounwind  {34; ALL-LABEL: bar:35; ALL:       # %bb.0:36; ALL-NEXT:    movsd {{.*#+}} xmm0 = mem[0],zero37; ALL-NEXT:    retl38  %c = load volatile double, ptr @x39  ret void40}41