• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc -mtriple=x86_64-unknown-unknown -mattr=-sse < %s | FileCheck %s
3
4%struct.interrupt_frame = type { i64, i64, i64, i64, i64 }
5
6@llvm.used = appending global [1 x i8*] [i8* bitcast (void (%struct.interrupt_frame*, i64)* @test_isr_sse_clobbers to i8*)], section "llvm.metadata"
7
8; Clobbered SSE must not be saved when the target doesn't support SSE
9define x86_intrcc void @test_isr_sse_clobbers(%struct.interrupt_frame* %frame, i64 %ecode) {
10  ; CHECK-LABEL: test_isr_sse_clobbers:
11  ; CHECK:       # %bb.0:
12  ; CHECK-NEXT:    pushq %rax
13  ; CHECK-NEXT:    cld
14  ; CHECK-NEXT:    #APP
15  ; CHECK-NEXT:    #NO_APP
16  ; CHECK-NEXT:    addq $16, %rsp
17  ; CHECK-NEXT:    iretq
18  call void asm sideeffect "", "~{xmm0},~{xmm6}"()
19  ret void
20}
21