Files
swift-mirror/test/IRGen/bitcast_different_size.sil
Greg Parker 6295f3d8b3 Revert "[test] Remove CPU=i386_or_x86_64 hack."
Swift master uses LLVM swift-4.0-branch, which does not yet have
the lit change implementing this syntax.

This reverts commit dfd10ae485.
2017-02-28 14:59:31 -08:00

18 lines
480 B
Plaintext

// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -emit-ir %s -verify | %FileCheck %s
// REQUIRES: CPU=i386_or_x86_64
sil_stage canonical
import Swift
// CHECK-LABEL: define{{( protected)?}} swiftcc i64 @bitcast_different_size1
sil @bitcast_different_size1 : $@convention(thin) (Int32) -> Int64 {
entry(%i : $Int32):
// CHECK: ret {{.*}}undef
// CHECK: call {{.*}}trap
%o = unchecked_trivial_bit_cast %i : $Int32 to $Int64
return %o : $Int64
}