aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/mmx-bitcast-fold.ll
blob: fc7ce73a441e88cca4ae3785e10be3851aee7982 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: opt -mtriple=x86_64-- -early-cse < %s -S | FileCheck %s

; CHECK: @foo(x86_mmx bitcast (double 0.000000e+00 to x86_mmx))

define void @bar() {
entry:
  %0 = bitcast double 0.0 to x86_mmx
  %1 = call x86_mmx @foo(x86_mmx %0)
  ret void
}

declare x86_mmx @foo(x86_mmx)