[flang] Add NEW_LINE intrinsic to the intrinsic table

NEW_LINE intrinsic folding was already implemented but it had not
yet been added the the intrinsic table and was therefore not yet
recognised an intrinsic.
Add related tests.

Original-commit: flang-compiler/f18@42fcf5b5f1
Reviewed-on: https://github.com/flang-compiler/f18/pull/734
This commit is contained in:
Jean Perier 2019-09-11 03:01:55 -07:00
parent 05f75ac01f
commit 48659b1eb0
2 changed files with 2 additions and 2 deletions

View File

@ -552,6 +552,8 @@ static const IntrinsicInterface genericIntrinsicFunction[]{
{"modulo", {{"a", OperandIntOrReal}, {"p", OperandIntOrReal}},
OperandIntOrReal},
{"nearest", {{"x", SameReal}, {"s", AnyReal}}, SameReal},
{"new_line", {{"x", SameChar, Rank::anyOrAssumedRank}}, SameChar,
Rank::scalar},
{"nint", {{"a", AnyReal}, DefaultingKIND}, KINDInt},
{"norm2", {{"x", SameReal, Rank::array}, OptionalDIM}, SameReal,
Rank::dimReduced},
@ -694,8 +696,6 @@ static const IntrinsicInterface genericIntrinsicFunction[]{
// COSHAPE
// TODO: Object characteristic inquiry functions
// EXTENDS_TYPE_OF, IS_CONTIGUOUS, SAME_TYPE
// TODO: Type inquiry intrinsic functions - these return constants
// DIGITS, NEW_LINE
// TODO: Non-standard intrinsic functions
// AND, OR, XOR, LSHIFT, RSHIFT, SHIFT, ZEXT, IZEXT,
// COSD, SIND, TAND, ACOSD, ASIND, ATAND, ATAN2D, COMPL,

Binary file not shown.