23 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i386-unknown-unknown -mattr=+sse2 | FileCheck %s --check-prefix=X863; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+sse2 | FileCheck %s --check-prefix=X644; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=-sse2 | FileCheck %s --check-prefix=X645 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), %eax12; X86-NEXT: clflush (%eax)13; X86-NEXT: retl14;15; X64-LABEL: clflush:16; X64: # %bb.0:17; X64-NEXT: clflush (%rdi)18; X64-NEXT: retq19 tail call void @llvm.x86.sse2.clflush(ptr %p)20 ret void21}22declare void @llvm.x86.sse2.clflush(ptr) nounwind23