brintos

brintos / llvm-project-archived public Read only

0
0
Text · 536 B · d46aaf5 Raw
17 lines · plain
1; RUN: opt -S -passes='require<profile-summary>,function(codegenprepare)' < %s | FileCheck %s2 3target datalayout = "e-i64:64-v16:16-v32:32-n16:32:64"4target triple = "nvptx64-nvidia-cuda"5 6; Check that the smaller-width division that the BypassSlowDivision pass7; creates is not marked as "exact" (that is, it doesn't claim that the8; numerator is a multiple of the denominator).9;10; CHECK-LABEL: @test11define void @test(i64 %a, i64 %b, ptr %retptr) {12  ; CHECK: udiv i3213  %d = sdiv i64 %a, %b14  store i64 %d, ptr %retptr15  ret void16}17