• 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_fdiv_float(float %arg1, float %arg2) {
5; X64-LABEL: test_fdiv_float:
6; X64:       # %bb.0:
7; X64-NEXT:    divss %xmm1, %xmm0
8; X64-NEXT:    retq
9  %ret = fdiv float %arg1, %arg2
10  ret float %ret
11}
12
13define double @test_fdiv_double(double %arg1, double %arg2) {
14; X64-LABEL: test_fdiv_double:
15; X64:       # %bb.0:
16; X64-NEXT:    divsd %xmm1, %xmm0
17; X64-NEXT:    retq
18  %ret = fdiv double %arg1, %arg2
19  ret double %ret
20}
21
22