File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ _UnimplementedError()
80
80
}
81
81
82
82
//===----------------------------------------------------------------------===//
83
- // 'Int(truncatingBitPattern :)' initializer
83
+ // 'Int(truncatingIfNeeded :)' initializer
84
84
//===----------------------------------------------------------------------===//
85
85
86
86
%{
@@ -97,11 +97,11 @@ truncating_bit_pattern_test_template = gyb.parse_template("truncating_bit_patter
97
97
%
98
98
% for bit_pattern in test_bit_patterns:
99
99
100
- FixedPoint.test("${Dst}(truncatingBitPattern :) from ${Src}(${bit_pattern})") {
100
+ FixedPoint.test("${Dst}(truncatingIfNeeded :) from ${Src}(${bit_pattern})") {
101
101
% input = prepare_bit_pattern(bit_pattern, src_ty.bits, src_ty.is_signed)
102
102
let input = get${Src}(${input})
103
103
% input = prepare_bit_pattern(input, src_ty.bits, False)
104
- let output = get${Dst}(${Dst}(truncatingBitPattern : input))
104
+ let output = get${Dst}(${Dst}(truncatingIfNeeded : input))
105
105
let expected = get${Dst}(${prepare_bit_pattern(input, dst_ty.bits, dst_ty.is_signed)})
106
106
expectEqual(expected, output)
107
107
}
You can’t perform that action at this time.
0 commit comments