1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i386-unknown-unknown -mattr=+sse2 | FileCheck %s --check-prefix=X86
3 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+sse2 | FileCheck %s --check-prefix=X64
4 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=-sse2 | FileCheck %s --check-prefix=X64
6 ; It doesn't matter if an x86-64 target has specified "no-sse2"; we still can use clflush.
8 define void @clflush(ptr %p) nounwind {
11 ; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
12 ; X86-NEXT: clflush (%eax)
17 ; X64-NEXT: clflush (%rdi)
19 tail call void @llvm.x86.sse2.clflush(ptr %p)
22 declare void @llvm.x86.sse2.clflush(ptr) nounwind