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 5 6; It doesn't matter if an x86-64 target has specified "no-sse2"; we still can use clflush. 7 8define void @clflush(ptr %p) nounwind { 9; X86-LABEL: clflush: 10; X86: # %bb.0: 11; X86-NEXT: movl {{[0-9]+}}(%esp), %eax 12; X86-NEXT: clflush (%eax) 13; X86-NEXT: retl 14; 15; X64-LABEL: clflush: 16; X64: # %bb.0: 17; X64-NEXT: clflush (%rdi) 18; X64-NEXT: retq 19 tail call void @llvm.x86.sse2.clflush(ptr %p) 20 ret void 21} 22declare void @llvm.x86.sse2.clflush(ptr) nounwind 23