• 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-linux-gnu -global-isel -verify-machineinstrs < %s -o - | FileCheck %s --check-prefix=X64
3
4define float @test_fsub_float(float %arg1, float %arg2) {
5; X64-LABEL: test_fsub_float:
6; X64:       # %bb.0:
7; X64-NEXT:    subss %xmm1, %xmm0
8; X64-NEXT:    retq
9  %ret = fsub float %arg1, %arg2
10  ret float %ret
11}
12
13define double @test_fsub_double(double %arg1, double %arg2) {
14; X64-LABEL: test_fsub_double:
15; X64:       # %bb.0:
16; X64-NEXT:    subsd %xmm1, %xmm0
17; X64-NEXT:    retq
18  %ret = fsub double %arg1, %arg2
19  ret double %ret
20}
21
22