mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
11 lines
416 B
Swift
11 lines
416 B
Swift
// RUN: %target-swift-frontend -parse-stdlib -emit-assembly %s -o - | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-cpu
|
|
|
|
// test converting floating point to unsigned integer
|
|
import Swift
|
|
let f = -123.0 as Float
|
|
let x = Builtin.fptoui_FPIEEE32_Int8(f._value)
|
|
|
|
// CHECK-NOT: (dummy CHECK line to avoid FileCheck complaints)
|
|
// CHECK-s390x: clfebr %r{{[0-9]+}}, {{[0-7]+}}, %f{{[0-9]+}}, {{[0-9]+}}
|
|
|