# Copyright (c) 2021-2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # The following comment until the empty line must be a valid YAML document # containing exact copies of ISA specification assertions relevant to this test. #--- #- title: Type conversions # description: 'Perform specified primitive type conversion of accumulator. # #' # exceptions: # - x_none # instructions: # - sig: i64tof64 # acc: inout:i64->f64 # format: # - op_none # verification: # - acc_type ## runner-option: verifier-failure ## runner-option: bugid: 964, 1653 ## runner-option: tags: verifier # Test description: # Check `i64tof64` with incorrect accumulator type. # Load different values (objects, strings, types, 64-bit floating point values, 32-bit integer values) and invokes `i64tof64`. # Return 0 to indicate that negative test failed, because this line is unreachable and code will not be executed after verification error. # # header .function i32 main() { # ldai 0 i64tof64 ldai 0 return }